mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
storing the date when a status was set
This commit is contained in:
@@ -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'));
|
||||
`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user