This repository has been archived by the owner on Nov 21, 2024. It is now read-only.
generated from communitiesuk/funding-service-design-TEMPLATE
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ggis_scheme_reference_number for fund config
- Loading branch information
1 parent
f550016
commit 7c4a18e
Showing
5 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
db/migrations/versions/~2024_11_13_1349-71ec50f94e6f_add_ggis_scheme_reference_number.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
"""Add ggis_scheme_reference_number | ||
Revision ID: 71ec50f94e6f | ||
Revises: de8d7954ffda | ||
Create Date: 2024-11-13 13:49:03.498795 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '71ec50f94e6f' | ||
down_revision = 'de8d7954ffda' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table('fund', schema=None) as batch_op: | ||
batch_op.add_column(sa.Column('ggis_scheme_reference_number', sa.String(length=255), nullable=True)) | ||
|
||
with op.batch_alter_table('round', schema=None) as batch_op: | ||
batch_op.alter_column('reference_contact_page_over_email', | ||
existing_type=sa.BOOLEAN(), | ||
nullable=False) | ||
|
||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table('round', schema=None) as batch_op: | ||
batch_op.alter_column('reference_contact_page_over_email', | ||
existing_type=sa.BOOLEAN(), | ||
nullable=True) | ||
|
||
with op.batch_alter_table('fund', schema=None) as batch_op: | ||
batch_op.drop_column('ggis_scheme_reference_number') | ||
|
||
# ### end Alembic commands ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters