mirror of
https://github.com/StefBuwalda/ProjectIOT.git
synced 2025-10-30 19:29:57 +00:00
A bunch of mess
This commit is contained in:
33
migrations/versions/7a26306b04df_.py
Normal file
33
migrations/versions/7a26306b04df_.py
Normal file
@@ -0,0 +1,33 @@
|
||||
"""empty message
|
||||
|
||||
Revision ID: 7a26306b04df
|
||||
Revises:
|
||||
Create Date: 2025-04-10 20:56:03.819230
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '7a26306b04df'
|
||||
down_revision = None
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.create_table('plate',
|
||||
sa.Column('id', sa.Integer(), nullable=False),
|
||||
sa.Column('plate', sa.String(length=40), nullable=False),
|
||||
sa.Column('dateLogged', sa.DateTime(), nullable=True),
|
||||
sa.PrimaryKeyConstraint('id')
|
||||
)
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_table('plate')
|
||||
# ### end Alembic commands ###
|
||||
Reference in New Issue
Block a user