This message was deleted.
# ask-ai
s
This message was deleted.
t
Thanks for reaching out, vikram. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — I’m looking at the SQL error about "syntax error at or near 'active'" when ensuring dashboard tables. To help diagnose and fix this quickly I need a couple details: 1. Which database engine and version are you using? (Postgres, MySQL, SQLite, and version) 2. Can you paste the full SQL CREATE/ALTER statement or the migration file that fails (the lines around where DEFAULT 'active' appears)? 3. How are you running the migration/setup? (CLI command, app startup, migration tool and its version) 4. If possible, paste the exact error text (including the few lines above/below the snippet) — that caret (^) location helps pinpoint syntax context. If you prefer, share the file name where the dashboard table schema is defined and I can point to likely fixes.
Thanks — I’m looking at the logs you shared and focusing on the error: “Failed to ensure dashboard tables exist: syntax error at or near 'active'” pointing at the line with
status VARCHAR(50) NOT NULL DEFAULT 'active',
. To diagnose quickly I need two things: 1. Which database engine and version are you using? (Postgres, MySQL, SQLite, and exact version if known) 2. The full CREATE/ALTER statement or migration file around that
status
column (a few lines before and after). If you prefer, paste the migration filename or the code that runs migrations during startup and I’ll point out the fix.
Thanks — you’ve identified the problem line. The syntax error is caused by using curly/smart quotes (
‘active’
) instead of straight single quotes (
'active'
). PostgreSQL requires straight single quotes for string literals. Fix the line to: status VARCHAR(50) NOT NULL DEFAULT 'active', Then re-run the migration. If you hit any other errors, paste the updated SQL and I’ll help next steps.