2022-09-26 16:47:57 +00:00
|
|
|
"""
|
|
|
|
|
|
2022-10-11 20:38:00 +00:00
|
|
|
Revision ID: 0378_add_org_names
|
|
|
|
|
Revises: 0377_add_inbound_sms_number
|
2022-09-26 16:47:57 +00:00
|
|
|
Create Date: 2022-09-23 20:04:00.766980
|
|
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
from alembic import op
|
|
|
|
|
import sqlalchemy as sa
|
|
|
|
|
from sqlalchemy.dialects import postgresql
|
|
|
|
|
|
2022-10-11 20:38:00 +00:00
|
|
|
revision = '0378_add_org_names'
|
|
|
|
|
down_revision = '0377_add_inbound_sms_number'
|
2022-09-26 16:47:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
def upgrade():
|
|
|
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
|
|
|
op.get_bind()
|
|
|
|
|
|
2022-09-28 16:05:57 -04:00
|
|
|
op.execute("TRUNCATE TABLE organisation_types CASCADE;")
|
|
|
|
|
op.execute("INSERT INTO organisation_types VALUES ('state','f','250000'),('federal','f','250000'),('other','f','250000');")
|
2022-09-26 16:47:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def downgrade():
|
|
|
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
|
|
|
pass
|
|
|
|
|
# ### end Alembic commands ###
|