@socialgouv/matomo-postgres 1.3.0 → 1.3.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@socialgouv/matomo-postgres",
3
3
  "description": "Extract visitor events from Matomo API and push to Postgres",
4
- "version": "1.3.0",
4
+ "version": "1.3.1",
5
5
  "types": "types/index.d.ts",
6
6
  "license": "Apache-2.0",
7
7
  "main": "src/index.js",
@@ -12,7 +12,7 @@ const matomoVisit = require("./visit.json");
12
12
 
13
13
  const run = require("../index");
14
14
 
15
- const NB_REQUEST_TO_INIT_DB = 20; // Number of query to init DB (createTable.js)
15
+ const NB_REQUEST_TO_INIT_DB = 21; // Number of query to init DB (createTable.js)
16
16
  const TEST_DATE = new Date();
17
17
 
18
18
  // @ts-ignore
@@ -72,6 +72,7 @@ async function createTable(client) {
72
72
  `CREATE INDEX IF NOT EXISTS idx_idvisit ON ${table}(idvisit);`,
73
73
  `CREATE INDEX IF NOT EXISTS idx_action_eventcategory ON ${table}(action_eventcategory);`,
74
74
  `CREATE INDEX IF NOT EXISTS idx_action_type ON ${table}(action_type);`,
75
+ `CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_action_eventaction ON ${table}(action_eventaction);`,
75
76
  ];
76
77
 
77
78
  // --------------------------------------------- //