storing the date when a status was set

This commit is contained in:
orangecoding
2026-06-02 21:09:35 +02:00
parent d2978c14db
commit bbebc2a1a2
8 changed files with 133 additions and 24 deletions

View File

@@ -5,7 +5,7 @@
export function up(db) {
db.exec(`
ALTER TABLE listings ADD COLUMN status TEXT;
CREATE INDEX IF NOT EXISTS idx_listings_status ON listings (status);
ALTER TABLE listings ADD COLUMN status JSON;
CREATE INDEX IF NOT EXISTS idx_listings_status ON listings (json_extract(status, '$.status'));
`);
}