forked from HoloTech/subathon-tracker-bot
Compare commits
2 Commits
3c3e857e28
...
2e60625e77
| Author | SHA1 | Date | |
|---|---|---|---|
| 2e60625e77 | |||
| 68d678c74f |
@@ -17,6 +17,18 @@ BEGIN
|
||||
END;
|
||||
$$ language 'plpgsql';
|
||||
|
||||
CREATE OR REPLACE FUNCTION current_module_version(module_name TEXT)
|
||||
RETURNS INTEGER
|
||||
AS $$
|
||||
SELECT
|
||||
to_version
|
||||
FROM version_history
|
||||
WHERE
|
||||
component = $1
|
||||
ORDER BY _timestamp DESC
|
||||
LIMIT 1;
|
||||
$$ LANGUAGE SQL;
|
||||
|
||||
CREATE TABLE app_config(
|
||||
appname TEXT PRIMARY KEY,
|
||||
created_at TIMESTAMPTZ NOT NULL DEFAULT now()
|
||||
|
||||
+1
-1
Submodule src/modules/tracker updated: f853f01bf8...d7ef852ebb
Reference in New Issue
Block a user