keystone/keystone/common
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
..
cache Typo: key_manger_factory to key_mangler_factory 2016-09-01 19:17:53 -07:00
kvs Cleaning imports in code 2016-08-27 09:02:41 +07:00
ldap Isolate common ldap code to the identity backend 2016-05-21 20:57:09 -07:00
sql Fixes password created_at errors due to the server_default 2016-09-16 23:57:45 +00:00
validation PCI-DSS Password strength requirements 2016-07-14 15:10:33 +00:00
__init__.py establish basic structure 2012-01-18 20:06:27 -08:00
authorization.py Add is_domain in token response 2016-05-11 21:32:39 +00:00
clean.py move clean.py into keystone/common 2015-07-18 23:32:08 -07:00
context.py Handle more auth information via context 2016-07-13 17:14:46 +10:00
controller.py PCI-DSS Password expires validation 2016-08-05 13:21:42 +00:00
dependency.py Fix D401 PEP8 violation. 2016-04-14 20:08:52 +00:00
driver_hints.py /services?name=<name> API fails when using list_limit 2016-06-21 14:22:19 -07:00
extension.py Fix D202: No blank lines after function docstring (PEP257) 2015-10-28 07:25:04 +00:00
fernet_utils.py Remove unused _convert_to_integers() method 2016-09-14 17:01:18 +00:00
json_home.py Fix D202: No blank lines after function docstring (PEP257) 2015-10-28 07:25:04 +00:00
manager.py Only cache callables in the base manager 2016-09-06 16:42:20 +00:00
openssl.py Fix formatting strings when using multiple variables 2016-08-30 12:20:23 +07:00
profiler.py Support new osprofiler API 2016-08-15 13:55:34 +00:00
request.py Require auth_context middleware in the pipeline 2016-07-13 17:14:46 +10:00
router.py Implement HEAD method for all v3 GET actions 2016-03-22 10:27:53 -07:00
tokenless_auth.py Relax the requirement for mappings to result in group memberships 2016-09-01 03:24:27 +00:00
utils.py Merge "Remove unused read_cached_file method from utils" 2016-09-14 23:43:24 +00:00
wsgi.py Cleaning imports in code 2016-08-27 09:02:41 +07:00