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:
+4
-1
@@ -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,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,7 +6,8 @@ active = [
|
||||
".voicefix",
|
||||
".messagelogger",
|
||||
".voicelog",
|
||||
".yarn"
|
||||
".yarn",
|
||||
".pluscampaign",
|
||||
]
|
||||
|
||||
|
||||
|
||||
Submodule
+1
Submodule src/modules/pluscampaign added at a18885511a
+1
-1
Submodule src/modules/profiles updated: c9b6ce8f60...8818263d88
Reference in New Issue
Block a user