Files
st-pierre/migrations/000003_add_delete_timestamp.sql
T
didier e700a81c25 Add versioning, update tool, and soft-delete
Schema: public_id + version columns with UNIQUE constraint,
delete_timestamp for soft-delete.

Tools: store_flashcard accepts optional public_id, update_flashcard
creates a new version preserving history, delete_flashcard inserts
a tombstone row and removes the Qdrant point.

Qdrant: point ID is public_id (only latest version indexed).
2026-06-03 20:15:18 -04:00

6 lines
137 B
SQL

-- +goose Up
ALTER TABLE flashcard ADD COLUMN delete_timestamp TEXT;
-- +goose Down
ALTER TABLE flashcard DROP COLUMN delete_timestamp;