Fix Postgres prompt seed crashing on CASE WHEN 0/1.
SQLite treats integers as booleans; a backend recreate after the API key was added hit that on every start. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
07479f6a9f
commit
9d5befdde9
2 files changed
+4
-1
No files matched your search
+1
-1
@@ -307,7 +307,7 @@ def _seed_prompts(conn: Any) -> None:
|
||||
SET name = ?, description = ?, category = ?, prompt_type = ?,
|
||||
required_feature = ?, is_system_default = 1, default_template = ?,
|
||||
seed_revision = ?,
|
||||
template = CASE WHEN ? THEN ? ELSE template END,
|
||||
template = CASE WHEN ? = 1 THEN ? ELSE template END,
|
||||
updated = datetime('now')
|
||||
WHERE slug = ?
|
||||
""",
|
||||
|
||||
Reference in new issue
Block a user