-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
19693 continuation in corp types (#2771)
* 19693 continuation in corp types * no message
- Loading branch information
1 parent
de762f5
commit 770fe27
Showing
3 changed files
with
63 additions
and
10 deletions.
There are no files selected for viewing
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,39 @@ | ||
"""CTMP message | ||
Revision ID: 51524729b99c | ||
Revises: 824f5ef280c6 | ||
Create Date: 2024-04-23 14:50:24.894593 | ||
""" | ||
from alembic import op | ||
from sqlalchemy import Boolean, String | ||
from sqlalchemy.sql import column, table | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '51524729b99c' | ||
down_revision = '824f5ef280c6' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
|
||
def upgrade(): | ||
corp_type_table = table('corp_types', | ||
column('code', String), | ||
column('desc', String), | ||
column('default', Boolean) | ||
) | ||
op.bulk_insert( | ||
corp_type_table, | ||
[ | ||
{'code': 'CTMP', 'description': 'Continuation In', 'default': False}, | ||
{'code': 'C', 'description': 'BC Limited Company Continuation In', 'default': False}, | ||
{'code': 'CBEN', 'description': 'BC Benefit Company Continuation In', 'default': False}, | ||
{'code': 'CUL', 'description': 'BC Unlimited Liability Company Continuation In', 'default': False} | ||
] | ||
) | ||
op.execute("update corp_types set description='BC Community Contribution Company Continuation In' where code='CCC'") | ||
|
||
|
||
def downgrade(): | ||
op.execute("delete from corp_types where code in ('CTMP','C', 'CBEN', 'CUL')") |
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