remove post_class and letterrate model

This commit is contained in:
stvnrlly
2023-02-15 10:38:08 -05:00
parent 668ab251d4
commit b9afd54ce8
12 changed files with 60 additions and 154 deletions

View File

@@ -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,