Create Relay Bot MVP
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
"""initial schema"""
|
||||
|
||||
from alembic import op
|
||||
|
||||
from app.database.models import Base
|
||||
|
||||
revision = "0001_initial"
|
||||
down_revision = None
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
bind = op.get_bind()
|
||||
Base.metadata.create_all(
|
||||
bind,
|
||||
tables=[
|
||||
table for table in Base.metadata.sorted_tables if table.name != "repository_bindings"
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
Base.metadata.drop_all(op.get_bind())
|
||||
Reference in New Issue
Block a user