Initialer Import: Raceplaner mit Flask & Nginx Proxy
This commit is contained in:
32
app/migrations/versions/0489144eea7b_auto_migration.py
Normal file
32
app/migrations/versions/0489144eea7b_auto_migration.py
Normal file
@@ -0,0 +1,32 @@
|
||||
"""Auto-Migration
|
||||
|
||||
Revision ID: 0489144eea7b
|
||||
Revises:
|
||||
Create Date: 2026-01-21 19:09:43.187967
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '0489144eea7b'
|
||||
down_revision = None
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
with op.batch_alter_table('driver', schema=None) as batch_op:
|
||||
batch_op.add_column(sa.Column('order_index', sa.Integer(), nullable=True))
|
||||
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
with op.batch_alter_table('driver', schema=None) as batch_op:
|
||||
batch_op.drop_column('order_index')
|
||||
|
||||
# ### end Alembic commands ###
|
||||
35
app/migrations/versions/a2d7fac86703_auto_migration.py
Normal file
35
app/migrations/versions/a2d7fac86703_auto_migration.py
Normal file
@@ -0,0 +1,35 @@
|
||||
"""Auto-Migration
|
||||
|
||||
Revision ID: a2d7fac86703
|
||||
Revises: 0489144eea7b
|
||||
Create Date: 2026-01-21 19:12:54.952493
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = 'a2d7fac86703'
|
||||
down_revision = '0489144eea7b'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.create_table('stint',
|
||||
sa.Column('id', sa.Integer(), nullable=False),
|
||||
sa.Column('car_number', sa.Integer(), nullable=False),
|
||||
sa.Column('driver_id', sa.Integer(), nullable=True),
|
||||
sa.Column('order_index', sa.Integer(), nullable=True),
|
||||
sa.ForeignKeyConstraint(['driver_id'], ['driver.id'], ),
|
||||
sa.PrimaryKeyConstraint('id')
|
||||
)
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_table('stint')
|
||||
# ### end Alembic commands ###
|
||||
34
app/migrations/versions/e8ff60abd420_auto_migration.py
Normal file
34
app/migrations/versions/e8ff60abd420_auto_migration.py
Normal file
@@ -0,0 +1,34 @@
|
||||
"""Auto-Migration
|
||||
|
||||
Revision ID: e8ff60abd420
|
||||
Revises: a2d7fac86703
|
||||
Create Date: 2026-01-21 19:24:58.766275
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = 'e8ff60abd420'
|
||||
down_revision = 'a2d7fac86703'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
with op.batch_alter_table('race_config', schema=None) as batch_op:
|
||||
batch_op.add_column(sa.Column('always_change_tires', sa.Boolean(), nullable=True))
|
||||
batch_op.add_column(sa.Column('min_pit_stop_sec', sa.Integer(), nullable=True))
|
||||
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
with op.batch_alter_table('race_config', schema=None) as batch_op:
|
||||
batch_op.drop_column('min_pit_stop_sec')
|
||||
batch_op.drop_column('always_change_tires')
|
||||
|
||||
# ### end Alembic commands ###
|
||||
Reference in New Issue
Block a user