keystone/keystone/tests
Ronald De Rose b3fae7724d Fixes password created_at errors due to the server_default
Migration 002 sets the password created_at column to a TIMESTAMP type
with a server_default=sql.func.now(). There are a couple problems
that have been uncovered with this change:
* We cannot guarantee that func.now() will generate a UTC timestamp.
* For some older versions of MySQL, the default TIMESTAMP column will
automatically be updated when other columns are updated:
https://dev.mysql.com/doc/refman/5.5/en/timestamp-initialization.html

This patch fixes the problem by recreating the password created_at
column back to a DateTime type without a server_default:
1) Drop and recreate the created_at column
2) Update the created_at value
3) Set the created_at column as not nullable

Closes-Bug: #1621200
Change-Id: Id5c607a777afb6565d66a336028eba796e3846b2
(cherry picked from commit 32328de6e3)
2016-09-16 23:57:45 +00:00
..
common Fix keystone.common.wsgi to explicitly use bytes 2016-03-02 01:30:20 -05:00
functional Fix a few spelling mistakes 2016-06-24 02:53:48 +00:00
hacking Replace six iteration methods with standard ones 2016-09-08 18:56:31 +08:00
unit Fixes password created_at errors due to the server_default 2016-09-16 23:57:45 +00:00
__init__.py Move existing tests to unit 2015-02-13 15:54:29 -06:00