Merge pull request 'Add rewards campaign module' (#2) from feat-pluscampaign into master

Reviewed-on: #2
This commit was merged in pull request #2.
This commit is contained in:
2026-07-30 17:54:58 +10:00
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 {{{
+6 -5
View File
@@ -1,12 +1,13 @@
this_package = "modules"
active = [
".sysadmin",
".sysadmin",
".profiles",
".voicefix",
".messagelogger",
".voicelog",
".yarn"
".voicefix",
".messagelogger",
".voicelog",
".yarn",
".pluscampaign",
]