Initial Commit
slip slop
This commit is contained in:
commit
064e672ab7
61 changed files with 3504 additions and 0 deletions
29
migrations/versions/57326830536b_instrument_tunings.py
Normal file
29
migrations/versions/57326830536b_instrument_tunings.py
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
"""add instrument_tunings join table
|
||||
|
||||
Revision ID: 57326830536b
|
||||
Revises: abdeb80d003e
|
||||
Create Date: 2026-06-09
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
revision = "57326830536b"
|
||||
down_revision = "abdeb80d003e"
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
op.create_table(
|
||||
"instrument_tunings",
|
||||
sa.Column("instrument_id", sa.Integer(),
|
||||
sa.ForeignKey("instruments.id", ondelete="CASCADE"),
|
||||
primary_key=True, nullable=False),
|
||||
sa.Column("tuning_id", sa.Integer(),
|
||||
sa.ForeignKey("tunings.id", ondelete="CASCADE"),
|
||||
primary_key=True, nullable=False),
|
||||
)
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
op.drop_table("instrument_tunings")
|
||||
Loading…
Add table
Add a link
Reference in a new issue