feat: add Quote.is_active field

This commit is contained in:
cătălin 2025-06-06 14:54:26 +02:00
commit 811fead29d
No known key found for this signature in database
8 changed files with 287 additions and 235 deletions

View file

@ -0,0 +1,21 @@
"""
This module contains a Caribou migration.
Migration Name: active_quotes
Migration Version: 20250606143836
"""
def upgrade(connection):
# add `is_active` column to the `quotes` table
sql = """
ALTER TABLE quotes
ADD COLUMN is_active BOOLEAN DEFAULT TRUE;
"""
connection.execute(sql)
connection.commit()
def downgrade(connection):
# add your downgrade step here
pass