neutron_taas/db/migration/alembic_migration/script.py.mako
raw| 1 | """${message} |
| 2 | |
| 3 | Revision ID: ${up_revision} |
| 4 | Revises: ${down_revision} |
| 5 | Create Date: ${create_date} |
| 6 | |
| 7 | """ |
| 8 | |
| 9 | # revision identifiers, used by Alembic. |
| 10 | revision = ${repr(up_revision)} |
| 11 | down_revision = ${repr(down_revision)} |
| 12 | % if branch_labels: |
| 13 | branch_labels = ${repr(branch_labels)} |
| 14 | %endif |
| 15 | |
| 16 | from alembic import op |
| 17 | import sqlalchemy as sa |
| 18 | ${imports if imports else ""} |
| 19 | |
| 20 | def upgrade(): |
| 21 | ${upgrades if upgrades else "pass"} |