Files
notifications-api/migrations/versions/0105_opg_letter_org.py
T

31 lines
589 B
Python
Raw Normal View History

2017-07-05 14:17:14 +01:00
"""empty message
Revision ID: 0105_opg_letter_org
2023-07-19 09:19:40 -07:00
Revises: 0103_add_historical_redact
2017-07-05 14:17:14 +01:00
Create Date: 2017-06-29 12:44:16.815039
"""
# revision identifiers, used by Alembic.
2023-08-29 14:54:30 -07:00
revision = "0105_opg_letter_org"
down_revision = "0103_add_historical_redact"
2017-07-05 14:17:14 +01:00
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
from flask import current_app
def upgrade():
2023-08-29 14:54:30 -07:00
op.execute(
"""
2017-07-05 14:17:14 +01:00
INSERT INTO dvla_organisation VALUES
('002', 'Office of the Public Guardian')
2023-08-29 14:54:30 -07:00
"""
)
2017-07-05 14:17:14 +01:00
def downgrade():
# data migration, no downloads
pass