mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-10 07:12:20 -05:00
delete some migrations
This commit is contained in:
@@ -1,32 +0,0 @@
|
||||
"""empty message
|
||||
|
||||
Revision ID: 0074_update_sms_rate
|
||||
Revises: 0073_add_international_sms_flag
|
||||
Create Date: 2017-04-24 12:10:02.116278
|
||||
|
||||
"""
|
||||
|
||||
import uuid
|
||||
|
||||
from sqlalchemy import text
|
||||
|
||||
revision = '0074_update_sms_rate'
|
||||
down_revision = '0073_add_international_sms_flag'
|
||||
|
||||
from alembic import op
|
||||
|
||||
|
||||
def upgrade():
|
||||
conn = op.get_bind()
|
||||
input_params = {
|
||||
"id": uuid.uuid4()
|
||||
}
|
||||
conn.execute(text("INSERT INTO provider_rates (id, valid_from, rate, provider_id) "
|
||||
"VALUES (:id, '2017-04-01 00:00:00', 1.58, "
|
||||
"(SELECT id FROM provider_details WHERE identifier = 'mmg'))"), input_params)
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.get_bind()
|
||||
op.execute("DELETE FROM provider_rates where valid_from = '2017-04-01 00:00:00' "
|
||||
"and provider_id = (SELECT id FROM provider_details WHERE identifier = 'mmg')")
|
||||
@@ -1,7 +1,7 @@
|
||||
"""empty message
|
||||
|
||||
Revision ID: 0075_create_rates_table
|
||||
Revises: 0074_update_sms_rate
|
||||
Revises: 0073_add_international_sms_flag
|
||||
Create Date: 2017-04-24 15:12:18.907629
|
||||
|
||||
"""
|
||||
@@ -12,7 +12,7 @@ import uuid
|
||||
from sqlalchemy import text
|
||||
|
||||
revision = '0075_create_rates_table'
|
||||
down_revision = '0074_update_sms_rate'
|
||||
down_revision = '0073_add_international_sms_flag'
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
"""empty message
|
||||
|
||||
Revision ID: 0093_data_gov_uk
|
||||
Revises: 0092_add_inbound_provider
|
||||
Create Date: 2017-06-05 16:15:17.744908
|
||||
|
||||
"""
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
from sqlalchemy import text
|
||||
|
||||
revision = '0093_data_gov_uk'
|
||||
down_revision = '0092_add_inbound_provider'
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
DATA_GOV_UK_ID = '123496d4-44cb-4324-8e0a-4187101f4bdc'
|
||||
|
||||
input_params = {
|
||||
"data_gov_uk_id": DATA_GOV_UK_ID
|
||||
}
|
||||
|
||||
|
||||
def upgrade():
|
||||
conn = op.get_bind()
|
||||
conn.execute(text("INSERT INTO organisation VALUES (:data_gov_uk_id,'', 'data_gov_uk_x2.png', 'data gov.uk')"),
|
||||
input_params)
|
||||
|
||||
|
||||
def downgrade():
|
||||
conn = op.get_bind()
|
||||
conn.execute(text("DELETE FROM organisation WHERE id = :data_gov_uk_id"), input_params)
|
||||
@@ -1,7 +1,7 @@
|
||||
"""empty message
|
||||
|
||||
Revision ID: 0094_job_stats_update
|
||||
Revises: 0093_data_gov_uk
|
||||
Revises: 0092_add_inbound_provider
|
||||
Create Date: 2017-06-06 14:37:30.051647
|
||||
|
||||
"""
|
||||
@@ -10,7 +10,7 @@ import sqlalchemy as sa
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '0094_job_stats_update'
|
||||
down_revision = '0093_data_gov_uk'
|
||||
down_revision = '0092_add_inbound_provider'
|
||||
|
||||
|
||||
def upgrade():
|
||||
|
||||
Reference in New Issue
Block a user