BUNCH OF TRASH

This commit is contained in:
2025-04-24 18:17:26 +02:00
parent 9576899d1a
commit 8fb271ee72
16 changed files with 39 additions and 50 deletions

View File

@@ -0,0 +1,40 @@
"""empty message
Revision ID: dcedd32468e2
Revises:
Create Date: 2025-04-23 09:48:54.655874
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'dcedd32468e2'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('AllowedPlates',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('plate', sa.String(length=40), nullable=False),
sa.PrimaryKeyConstraint('id')
)
op.create_table('LoggedItems',
sa.Column('dateLogged', sa.DateTime(), nullable=False),
sa.Column('allowed', sa.Boolean(), server_default=sa.text('0'), nullable=False),
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('plate', sa.String(length=40), nullable=False),
sa.PrimaryKeyConstraint('id')
)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_table('LoggedItems')
op.drop_table('AllowedPlates')
# ### end Alembic commands ###