old migration
This commit is contained in:
parent
8d8abbacc0
commit
3bc413916c
1 changed files with 50 additions and 0 deletions
50
migrations/versions/9821817d735b_.py
Normal file
50
migrations/versions/9821817d735b_.py
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
"""empty message
|
||||
|
||||
Revision ID: 9821817d735b
|
||||
Revises:
|
||||
Create Date: 2024-09-27 12:04:56.137545
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '9821817d735b'
|
||||
down_revision = None
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.create_table('budget_category',
|
||||
sa.Column('id', sa.INTEGER(), nullable=False),
|
||||
sa.Column('name', sa.String(), nullable=False),
|
||||
sa.PrimaryKeyConstraint('id')
|
||||
)
|
||||
op.create_table('line_item',
|
||||
sa.Column('id', sa.INTEGER(), nullable=False),
|
||||
sa.Column('parent_line_item_id', sa.INTEGER(), nullable=True),
|
||||
sa.Column('amount', sa.INTEGER(), nullable=False),
|
||||
sa.Column('currency_type', sa.String(), nullable=True),
|
||||
sa.Column('vendor_id', sa.INTEGER(), nullable=True),
|
||||
sa.Column('date', sa.INTEGER(), nullable=False),
|
||||
sa.Column('confirmation_code', sa.INTEGER(), nullable=True),
|
||||
sa.PrimaryKeyConstraint('id')
|
||||
)
|
||||
op.create_table('vendor',
|
||||
sa.Column('id', sa.INTEGER(), nullable=False),
|
||||
sa.Column('name', sa.String(), nullable=False),
|
||||
sa.Column('bc_id', sa.INTEGER(), nullable=True),
|
||||
sa.PrimaryKeyConstraint('id')
|
||||
)
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_table('vendor')
|
||||
op.drop_table('line_item')
|
||||
op.drop_table('budget_category')
|
||||
# ### end Alembic commands ###
|
||||
Loading…
Add table
Add a link
Reference in a new issue