mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-07 16:38:24 -04:00
remove post_class and letterrate model
This commit is contained in:
@@ -12,8 +12,6 @@ from datetime import datetime
|
||||
from alembic import op
|
||||
from sqlalchemy.sql import text
|
||||
|
||||
from app.models import LetterRate
|
||||
|
||||
|
||||
revision = '0341_new_letter_rates'
|
||||
down_revision = '0340_stub_training_broadcasts'
|
||||
@@ -38,7 +36,7 @@ def upgrade():
|
||||
conn = op.get_bind()
|
||||
conn.execute(text("UPDATE letter_rates SET end_date = :start WHERE end_date IS NULL"), start=CHANGEOVER_DATE)
|
||||
|
||||
op.bulk_insert(LetterRate.__table__, [
|
||||
op.bulk_insert('letter_rates', [
|
||||
{
|
||||
'id': uuid.uuid4(),
|
||||
'start_date': CHANGEOVER_DATE,
|
||||
|
||||
Reference in New Issue
Block a user