feat: add Quote.is_active field
This commit is contained in:
parent
7131930d8e
commit
811fead29d
8 changed files with 287 additions and 235 deletions
21
migrations/20250606143836_active_quotes.py
Normal file
21
migrations/20250606143836_active_quotes.py
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue