Initial project commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
"""replace price with price_min and price_max
|
||||
|
||||
Revision ID: 0005
|
||||
Revises: 0004
|
||||
Create Date: 2026-03-27
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
revision = "0005"
|
||||
down_revision = "0004"
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
op.alter_column("spots", "price", new_column_name="price_min")
|
||||
op.add_column("spots", sa.Column("price_max", sa.Numeric(10, 2), nullable=True))
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
op.drop_column("spots", "price_max")
|
||||
op.alter_column("spots", "price_min", new_column_name="price")
|
||||
Reference in New Issue
Block a user