keystone/keystone
Stephen Finucane 1bcf8cee0d sql: Add support for auto-generation
Add the ability to autogenerate migrations. Because we need to support
different types of migration (expand and contract), this ends up being
significantly more complicated than what was needed in nova and cinder
and more akin to what was done in neutron. The key feature is here is
the use of an alembic hook called 'process_revision_directives', which
is called whenever one calls 'alembic revision --autogenerate'. We
extend this to allow us to hook into the autogeneration process and
ensure we only spit out directives for the relevant phase.

While we're here, we open up the Bobcat DB branch. This is similar to
what Neutron do (e.g. change I13ba740d245a46c41a969ff198e08ddff896eb1a).
Documentation will follow.

Change-Id: I17c9ff9508c5e2bd9521c18973af093d7550ab5a
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-02-28 17:47:57 +00:00
..
api requirements: Bump linter requirements 2022-10-26 15:14:21 +03:00
application_credential db: Replace use of reverse cascades 2023-02-28 17:26:39 +00:00
assignment db: Replace use of Query.get() 2023-02-28 17:26:39 +00:00
auth Add expiring user group memberships on mapped authentication 2020-04-07 19:30:57 -04:00
catalog db: Replace use of Query.get() 2023-02-28 17:26:39 +00:00
cmd db: Remove legacy migrations 2023-02-28 17:26:39 +00:00
common sql: Add support for auto-generation 2023-02-28 17:47:57 +00:00
conf Force algo specific maximum length 2023-02-22 14:43:35 -06:00
credential db: Replace use of Query.get() 2023-02-28 17:26:39 +00:00
endpoint_policy Remove six usage 2020-01-30 06:06:51 +00:00
federation db: Replace use of Query.get() 2023-02-28 17:26:39 +00:00
identity db: Replace use of Query.get() 2023-02-28 17:26:39 +00:00
limit Remove six usage 2020-01-30 06:06:51 +00:00
locale Imported Translations from Zanata 2022-09-08 03:35:35 +00:00
models fix E225 missing whitespace around operator 2020-11-27 13:21:26 +01:00
oauth1 db: Replace use of Query.get() 2023-02-28 17:26:39 +00:00
oauth2 OAuth2.0 Client Credentials Grant Flow Support 2022-06-14 09:09:33 +00:00
policy db: Replace use of Query.get() 2023-02-28 17:26:39 +00:00
receipt Remove six usage 2020-01-30 06:06:51 +00:00
resource db: Replace use of Query.get() 2023-02-28 17:26:39 +00:00
revoke requirements: Bump linter requirements 2022-10-26 15:14:21 +03:00
server Merge "OAuth2.0 Client Credentials Grant Flow Support" 2022-08-26 17:09:42 +00:00
tests tests: Rework BannedDBSchemaOperations fixture 2023-02-28 17:46:53 +00:00
token Limit token expiration to application credential expiration 2022-10-21 12:36:39 -05:00
trust db: Replace use of Query.get() 2023-02-28 17:26:39 +00:00
__init__.py Revert "Disable eventlet monkey-patching of DNS" 2013-05-10 10:24:48 -04:00
exception.py OAuth2.0 Client Credentials Grant Flow Support 2022-06-14 09:09:33 +00:00
i18n.py Fix translated response 2019-08-19 14:49:37 +08:00
notifications.py Hide AccountLocked exception from end users 2021-04-23 13:43:42 -05:00
version.py Add expiring user group memberships on mapped authentication 2020-04-07 19:30:57 -04:00