feat: add modpack update tracking feature
This commit is contained in:
2
backend
2
backend
Submodule backend updated: e98d10ae1d...275c1f2d50
6
scripts/migrations/002_modpacks_updated_at.sql
Normal file
6
scripts/migrations/002_modpacks_updated_at.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
ALTER TABLE modpacks ADD COLUMN updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW();
|
||||
|
||||
CREATE TRIGGER set_timestamp_modpacks
|
||||
BEFORE UPDATE ON modpacks
|
||||
FOR EACH ROW
|
||||
EXECUTE FUNCTION trigger_set_timestamp();
|
||||
Reference in New Issue
Block a user