a ton of fun happened, refactored alot
This commit is contained in:
36
migrations/versions/24de4aa78a43_auto_migrate.py
Normal file
36
migrations/versions/24de4aa78a43_auto_migrate.py
Normal file
@ -0,0 +1,36 @@
|
||||
"""auto-migrate
|
||||
|
||||
Revision ID: 24de4aa78a43
|
||||
Revises: 4082065b932b
|
||||
Create Date: 2025-06-28 23:24:05.909001
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '24de4aa78a43'
|
||||
down_revision = '4082065b932b'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.create_table('zip_jobs',
|
||||
sa.Column('id', sa.Integer(), nullable=False),
|
||||
sa.Column('user_id', sa.Integer(), nullable=False),
|
||||
sa.Column('filename', sa.String(length=255), nullable=False),
|
||||
sa.Column('created_at', sa.DateTime(), nullable=True),
|
||||
sa.Column('status', sa.String(length=20), nullable=True),
|
||||
sa.Column('error', sa.Text(), nullable=True),
|
||||
sa.PrimaryKeyConstraint('id')
|
||||
)
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_table('zip_jobs')
|
||||
# ### end Alembic commands ###
|
Reference in New Issue
Block a user