mirror of
https://github.com/StefBuwalda/dashboard_test.git
synced 2025-10-30 11:19:58 +00:00
Add services to db if they don't exist
This commit is contained in:
35
migrations/versions/f04407e8e466_.py
Normal file
35
migrations/versions/f04407e8e466_.py
Normal file
@@ -0,0 +1,35 @@
|
||||
"""empty message
|
||||
|
||||
Revision ID: f04407e8e466
|
||||
Revises: d7d380435347
|
||||
Create Date: 2025-09-03 15:40:30.413166
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = 'f04407e8e466'
|
||||
down_revision = 'd7d380435347'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.create_table('service',
|
||||
sa.Column('id', sa.Integer(), nullable=False),
|
||||
sa.Column('url', sa.String(), nullable=False),
|
||||
sa.Column('label', sa.String(length=15), nullable=False),
|
||||
sa.Column('public_access', sa.Boolean(), nullable=False),
|
||||
sa.Column('ping_method', sa.Integer(), nullable=False),
|
||||
sa.PrimaryKeyConstraint('id')
|
||||
)
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_table('service')
|
||||
# ### end Alembic commands ###
|
||||
Reference in New Issue
Block a user