Fix SQLite migration syntax error in m007
SQLite doesn't support adding multiple columns in a single ALTER TABLE statement. Split into separate statements for each column. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
4fb6d90fcd
commit
c49abdb53f
1 changed files with 5 additions and 5 deletions
|
|
@ -181,12 +181,12 @@ async def m007_add_extra_fields(db):
|
||||||
to support promo codes and ticket metadata.
|
to support promo codes and ticket metadata.
|
||||||
"""
|
"""
|
||||||
# Add canceled and 'extra' columns to events table
|
# Add canceled and 'extra' columns to events table
|
||||||
|
# SQLite requires separate ALTER TABLE statements for each column
|
||||||
await db.execute(
|
await db.execute(
|
||||||
"""
|
"ALTER TABLE events.events ADD COLUMN canceled BOOLEAN NOT NULL DEFAULT FALSE;"
|
||||||
ALTER TABLE events.events
|
)
|
||||||
ADD COLUMN canceled BOOLEAN NOT NULL DEFAULT FALSE,
|
await db.execute(
|
||||||
ADD COLUMN extra TEXT;
|
"ALTER TABLE events.events ADD COLUMN extra TEXT;"
|
||||||
"""
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# Add 'extra' column to ticket table
|
# Add 'extra' column to ticket table
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue