Files
notifications-api/migrations/versions/0386_remove_letter_rates_.py
Steven Reilly ff4190a8eb Remove letters-related code (#175)
This deletes a big ol' chunk of code related to letters. It's not everything—there are still a few things that might be tied to sms/email—but it's the the heart of letters function. SMS and email function should be untouched by this.

Areas affected:

- Things obviously about letters
- PDF tasks, used for precompiling letters
- Virus scanning, used for those PDFs
- FTP, used to send letters to the printer
- Postage stuff
2023-03-02 20:20:31 -05:00

35 lines
1.2 KiB
Python

"""
Revision ID: 0386_remove_letter_rates_.py
Revises: 0385_remove postage_.py
Create Date: 2023-02-15 10:24:55.107467
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
revision = '0386_remove_letter_rates_.py'
down_revision = '0385_remove postage_.py'
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_table('letter_rates')
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('letter_rates',
sa.Column('id', postgresql.UUID(), autoincrement=False, nullable=False),
sa.Column('start_date', postgresql.TIMESTAMP(), autoincrement=False, nullable=False),
sa.Column('end_date', postgresql.TIMESTAMP(), autoincrement=False, nullable=True),
sa.Column('sheet_count', sa.INTEGER(), autoincrement=False, nullable=False),
sa.Column('rate', sa.NUMERIC(), autoincrement=False, nullable=False),
sa.Column('crown', sa.BOOLEAN(), autoincrement=False, nullable=False),
sa.Column('post_class', sa.VARCHAR(), autoincrement=False, nullable=False),
sa.PrimaryKeyConstraint('id', name='letter_rates_pkey')
)
# ### end Alembic commands ###