7 Commits

5 changed files with 30 additions and 7 deletions
+4 -1
View File
@@ -15,4 +15,7 @@
url = https://git.thewisewolf.dev/HoloTech/psqlmapper.git
[submodule "src/modules/profiles"]
path = src/modules/profiles
url = git@thewisewolf.dev:HoloTech/profiles-plugin.git
url = https://git.thewisewolf.dev/HoloTech/profiles-plugin.git
[submodule "src/modules/pluscampaign"]
path = src/modules/pluscampaign
url = https://git.thewisewolf.dev/CarmiCoven/pluscampaign-plugin.git
+18
View File
@@ -18,6 +18,24 @@ BEGIN
RETURN NEW;
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()
);
-- }}}
-- App metadata {{{
+2 -1
View File
@@ -6,7 +6,8 @@ active = [
".voicefix",
".messagelogger",
".voicelog",
".yarn"
".yarn",
".pluscampaign",
]