fix(db): add goose 00047 to retire demo project chat sessions
Dev already applied 00046 (projects only) before session retirement was folded into that file; 00047 closes the gap idempotently. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
-- +goose Up
|
||||
-- Retire chat sessions for goose-seeded demo projects (6001–6010).
|
||||
-- Complements 00046 (projects); needed when 00046 already applied before
|
||||
-- session retirement was added to that file.
|
||||
BEGIN;
|
||||
|
||||
UPDATE chat_sessions
|
||||
SET status = 'demo_retired',
|
||||
updated_at = now()
|
||||
WHERE project_id BETWEEN 6001 AND 6010
|
||||
AND status <> 'demo_retired';
|
||||
|
||||
COMMIT;
|
||||
|
||||
-- +goose Down
|
||||
BEGIN;
|
||||
|
||||
UPDATE chat_sessions
|
||||
SET status = 'active',
|
||||
updated_at = now()
|
||||
WHERE project_id BETWEEN 6001 AND 6010
|
||||
AND status = 'demo_retired';
|
||||
|
||||
COMMIT;
|
||||
@@ -0,0 +1,24 @@
|
||||
-- +goose Up
|
||||
-- Retire chat sessions for goose-seeded demo projects (6001–6010).
|
||||
-- Complements 00046 (projects); needed when 00046 already applied before
|
||||
-- session retirement was added to that file.
|
||||
BEGIN;
|
||||
|
||||
UPDATE chat_sessions
|
||||
SET status = 'demo_retired',
|
||||
updated_at = now()
|
||||
WHERE project_id BETWEEN 6001 AND 6010
|
||||
AND status <> 'demo_retired';
|
||||
|
||||
COMMIT;
|
||||
|
||||
-- +goose Down
|
||||
BEGIN;
|
||||
|
||||
UPDATE chat_sessions
|
||||
SET status = 'active',
|
||||
updated_at = now()
|
||||
WHERE project_id BETWEEN 6001 AND 6010
|
||||
AND status = 'demo_retired';
|
||||
|
||||
COMMIT;
|
||||
Reference in New Issue
Block a user