Initialer Import: Raceplaner mit Flask & Nginx Proxy

This commit is contained in:
root
2026-01-23 21:42:48 +01:00
commit 634d3d865a
23 changed files with 993 additions and 0 deletions

View 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 ###

View 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 ###

View 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 ###