@pgpm/achievements 0.18.0 → 0.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/deploy/schemas/status_public/tables/level_requirements/table.sql +1 -1
- package/deploy/schemas/status_public/tables/user_achievements/table.sql +1 -1
- package/deploy/schemas/status_public/tables/user_levels/table.sql +1 -1
- package/deploy/schemas/status_public/tables/user_steps/table.sql +1 -1
- package/package.json +4 -4
- package/pgpm-achievements.control +2 -2
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
BEGIN;
|
|
6
6
|
|
|
7
7
|
CREATE TABLE status_public.user_achievements (
|
|
8
|
-
id uuid PRIMARY KEY DEFAULT
|
|
8
|
+
id uuid PRIMARY KEY DEFAULT uuidv7(),
|
|
9
9
|
user_id uuid NOT NULL,
|
|
10
10
|
name text NOT NULL, -- relates to level_requirements.name
|
|
11
11
|
count int NOT NULL DEFAULT 0,
|
|
@@ -7,7 +7,7 @@ BEGIN;
|
|
|
7
7
|
-- NOT using yet, so commented it out for simplicity
|
|
8
8
|
|
|
9
9
|
-- CREATE TABLE status_public.user_levels (
|
|
10
|
-
-- id uuid PRIMARY KEY DEFAULT
|
|
10
|
+
-- id uuid PRIMARY KEY DEFAULT uuidv7(),
|
|
11
11
|
-- user_id uuid NOT NULL,
|
|
12
12
|
-- name text NOT NULL, -- references levels
|
|
13
13
|
-- created_at timestamptz NOT NULL DEFAULT current_timestamp
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pgpm/achievements",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.1",
|
|
4
4
|
"description": "Achievement system for tracking user progress and milestones",
|
|
5
5
|
"author": "Dan Lynch <pyramation@gmail.com>",
|
|
6
6
|
"contributors": [
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"test:watch": "jest --watch"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@pgpm/jwt-claims": "0.
|
|
25
|
-
"@pgpm/verify": "0.
|
|
24
|
+
"@pgpm/jwt-claims": "0.19.1",
|
|
25
|
+
"@pgpm/verify": "0.19.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"pgpm": "^4.2.3"
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"bugs": {
|
|
36
36
|
"url": "https://github.com/constructive-io/pgpm-modules/issues"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "874490c55094ce0232bf230c613ee58685f369dc"
|
|
39
39
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# pgpm-achievements extension
|
|
2
2
|
comment = 'pgpm-achievements extension'
|
|
3
|
-
default_version = '0.15.
|
|
3
|
+
default_version = '0.15.5'
|
|
4
4
|
module_pathname = '$libdir/pgpm-achievements'
|
|
5
|
-
requires = 'plpgsql,
|
|
5
|
+
requires = 'plpgsql,pgpm-jwt-claims,pgpm-verify'
|
|
6
6
|
relocatable = false
|
|
7
7
|
superuser = false
|
|
8
8
|
|