mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-16 10:12:32 -05:00
rename organisation_types table (#350)
This commit is contained in:
21
migrations/versions/0397_rename_organisation_2.py
Normal file
21
migrations/versions/0397_rename_organisation_2.py
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
"""
|
||||||
|
|
||||||
|
Revision ID: 0397_rename_organisation_2
|
||||||
|
Revises: 0396_rename_organisation
|
||||||
|
Create Date: 2023-07-13 09:33:52.455290
|
||||||
|
|
||||||
|
"""
|
||||||
|
from alembic import op
|
||||||
|
import sqlalchemy as sa
|
||||||
|
from sqlalchemy.dialects import postgresql
|
||||||
|
|
||||||
|
revision = '0397_rename_organisation_2'
|
||||||
|
down_revision = '0396_rename_organisation'
|
||||||
|
|
||||||
|
|
||||||
|
def upgrade():
|
||||||
|
op.execute('ALTER TABLE organisation_types RENAME to organization_types')
|
||||||
|
|
||||||
|
|
||||||
|
def downgrade():
|
||||||
|
op.execute('ALTER TABLE organization_types RENAME to organisation_types')
|
||||||
Reference in New Issue
Block a user