@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.
@@ -6,7 +6,7 @@
6
6
  BEGIN;
7
7
 
8
8
  CREATE TABLE status_public.level_requirements (
9
- id uuid PRIMARY KEY DEFAULT uuid_generate_v4 (),
9
+ id uuid PRIMARY KEY DEFAULT uuidv7(),
10
10
  name text NOT NULL,
11
11
  level text NOT NULL,
12
12
  required_count int DEFAULT 1,
@@ -5,7 +5,7 @@
5
5
  BEGIN;
6
6
 
7
7
  CREATE TABLE status_public.user_achievements (
8
- id uuid PRIMARY KEY DEFAULT uuid_generate_v4 (),
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 uuid_generate_v4 (),
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
@@ -5,7 +5,7 @@
5
5
  BEGIN;
6
6
 
7
7
  CREATE TABLE status_public.user_steps (
8
- id uuid PRIMARY KEY DEFAULT uuid_generate_v4 (),
8
+ id uuid PRIMARY KEY DEFAULT uuidv7(),
9
9
  user_id uuid NOT NULL,
10
10
  name text NOT NULL, -- references level_requirement
11
11
  count int NOT NULL DEFAULT 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgpm/achievements",
3
- "version": "0.18.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.18.0",
25
- "@pgpm/verify": "0.18.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": "8144027c7fab4956bcdebd736d04c0d4f57344bc"
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'
3
+ default_version = '0.15.5'
4
4
  module_pathname = '$libdir/pgpm-achievements'
5
- requires = 'plpgsql,uuid-ossp,pgpm-jwt-claims,pgpm-verify'
5
+ requires = 'plpgsql,pgpm-jwt-claims,pgpm-verify'
6
6
  relocatable = false
7
7
  superuser = false
8
8