Commit Graph

9 Commits

Author SHA1 Message Date
Brian Haley c282077058 Fix pointless-string-statement pylint warning
For some reason, kilo_initial.py is triggering this warning,
so fix it by using comments instead of a docstring.

Also updated the template to use comments as well, so any
migrations created in the future use them, even though
none seem to be causing a similar warning right now.

Closes-bug: #2036763
Change-Id: I63b7ac83fdd3ebc6251979f1376daf2105489fdc
2023-09-21 10:43:46 -04:00
Brian Haley de243a3513 Fix E402 pep8 errors
Fix E402 (module level import not at top of file) pep8 errors
and no longer ignore new failures.

Trivialfix

Change-Id: If9a202f1f322b5b03966c692e33e94b7c872079b
2018-04-20 18:13:07 +00:00
Ihar Hrachyshka 87fff61b06 [neutron-db-manage] revision: properly bootstrap a new branch
If the intended branch is not present, bootstrap it:

- create directory;
- mark the new migration script with proper branch label;
- make the script down_revision == None to indicate it's a new branch;

One missing thing is making the script depends_on the previous release
branch. This is currently unsupported by alembic though.

Partially-Implements: blueprint online-schema-migrations
Change-Id: Ib3b9dfcbdb56db99b07a8e54629dda5933e1c1f5
2015-07-26 21:00:23 -04:00
Henry Gessau 132f1be686 Drop support for SQL Schema Downgrades
Remove downgrade from the --autogenerate option of neutron-db-manage.
Add tests to check that downgrade options cannot be used.

Related cross-project spec: https://review.openstack.org/152337
Partial-Bug: 1434103

Change-Id: Id2f7f521644828ab7fbc027c6037f76f0337e121
2015-03-23 08:12:22 -04:00
Salvatore 0bbc4a609a Remove logic for conditional migrations
This patch removes the logic for handling conditional migrations
and adjusts all the patches where it was used accordingly.

The alembic environment has been update to not send anymore
the active plugins list to migrations.

This patch also removes the vestigial 'options' parameter which
was sent to every migration but always set to None and never
used by any migration.

Implements blueprint bp/reorganize-migrations

Change-Id: I7285e0276b262a9ea5d22c456a5a8cf34c461a0c
2014-09-12 00:34:59 -04:00
Jakub Libosvar 9ea42f50d3 Change autogenerate to be unconditional
Template for generating db migration scripts are now not run according
to used plugins. Target environment is set to use all available models
but also used plugins are kept for backward compatibility.

Part of this patch is script that will drop unused tables to avoid
generating the drop in future migration scripts.

Change-Id: I90a7d3416de24f2317ccdeb828bb8bd973ee5e61
Closes-bug: #1346638
2014-08-25 14:27:31 -04:00
Akihiro Motoki b481026c0e Remove vim line from db migartion template
This commit also empties __init__.py and removes vim
modelines in the db migration related codes.

Change-Id: I9f83109c5becb6cf7e2e6ad9ad8eb9af3d8e0972
Closes-Bug: #1286991
2014-03-03 16:09:41 +09:00
Oleg Bondarev 47c0d2ebd5 Add support for service plugins to the migration framework
Implements blueprint migrations-for-service-plugins
Fixes bug 1209151

Change-Id: If7fc7a4488352e9b65b6973d8ea631e0d9ed8b68
2013-08-09 14:08:27 +04:00
Mark McClain ee3fe4e836 Rename Quantum to Neutron
This change renames everything to Neutron while providing backwards
compatible adjustments for Grizzly configuration files.

implements blueprint: remove-use-of-quantum

Change-Id: Ie7d07ba7c89857e13d4ddc8f0e9b68de020a3d19
2013-07-06 15:02:43 -04:00