@spinajs/session-provider-db 1.2.140 → 1.2.152

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.
@@ -11,14 +11,13 @@ const orm_1 = require("@spinajs/orm");
11
11
  let UserSessionDBSqlMigration_2022_06_28_01_01_01 = class UserSessionDBSqlMigration_2022_06_28_01_01_01 extends orm_1.OrmMigration {
12
12
  async up(connection) {
13
13
  await connection.schema().createTable('user_sessions', (table) => {
14
- table.int('Id').primaryKey().autoIncrement();
15
- table.string('SessionId', 255).notNull();
14
+ table.string('SessionId', 255).primaryKey().notNull();
16
15
  table.date('CreatedAt').notNull();
17
16
  table.date('Expiration').notNull();
18
17
  table.text('Data').notNull();
19
18
  });
20
19
  // create index explicit, otherwise sqlite driver cannot extract unique index from sqlite_master
21
- await connection.index().table('acl_sessions').name('session_id_acl_session_idx').columns(['SessionId']).unique();
20
+ await connection.index().table('user_sessions').name('session_id_user_session_idx').columns(['SessionId']).unique();
22
21
  }
23
22
  // tslint:disable-next-line: no-empty
24
23
  async down(_) { }
@@ -1 +1 @@
1
- {"version":3,"file":"UserSessionDBSqlMigration_2022_06_28_01_01_01.js","sourceRoot":"","sources":["../../src/migrations/UserSessionDBSqlMigration_2022_06_28_01_01_01.ts"],"names":[],"mappings":";;;;;;;;;AAAA,sCAAkE;AAGlE,IAAa,6CAA6C,GAA1D,MAAa,6CAA8C,SAAQ,kBAAY;IACtE,KAAK,CAAC,EAAE,CAAC,UAAqB;QACnC,MAAM,UAAU,CAAC,MAAM,EAAE,CAAC,WAAW,CAAC,eAAe,EAAE,CAAC,KAAK,EAAE,EAAE;YAC/D,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC,aAAa,EAAE,CAAC;YAC7C,KAAK,CAAC,MAAM,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC;YACzC,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,OAAO,EAAE,CAAC;YAClC,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,OAAO,EAAE,CAAC;YACnC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,CAAC;QAC/B,CAAC,CAAC,CAAC;QAEH,gGAAgG;QAChG,MAAM,UAAU,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACpH,CAAC;IAED,qCAAqC;IAC9B,KAAK,CAAC,IAAI,CAAC,CAAY,IAAkB,CAAC;CAClD,CAAA;AAhBY,6CAA6C;IADzD,IAAA,eAAS,EAAC,SAAS,CAAC;GACR,6CAA6C,CAgBzD;AAhBY,sGAA6C"}
1
+ {"version":3,"file":"UserSessionDBSqlMigration_2022_06_28_01_01_01.js","sourceRoot":"","sources":["../../src/migrations/UserSessionDBSqlMigration_2022_06_28_01_01_01.ts"],"names":[],"mappings":";;;;;;;;;AAAA,sCAAkE;AAGlE,IAAa,6CAA6C,GAA1D,MAAa,6CAA8C,SAAQ,kBAAY;IACtE,KAAK,CAAC,EAAE,CAAC,UAAqB;QACnC,MAAM,UAAU,CAAC,MAAM,EAAE,CAAC,WAAW,CAAC,eAAe,EAAE,CAAC,KAAK,EAAE,EAAE;YAC/D,KAAK,CAAC,MAAM,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC,UAAU,EAAE,CAAC,OAAO,EAAE,CAAC;YACtD,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,OAAO,EAAE,CAAC;YAClC,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,OAAO,EAAE,CAAC;YACnC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,CAAC;QAC/B,CAAC,CAAC,CAAC;QAEH,gGAAgG;QAChG,MAAM,UAAU,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACtH,CAAC;IAED,qCAAqC;IAC9B,KAAK,CAAC,IAAI,CAAC,CAAY,IAAkB,CAAC;CAClD,CAAA;AAfY,6CAA6C;IADzD,IAAA,eAAS,EAAC,SAAS,CAAC;GACR,6CAA6C,CAezD;AAfY,sGAA6C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spinajs/session-provider-db",
3
- "version": "1.2.140",
3
+ "version": "1.2.152",
4
4
  "description": "Simple session provider based on relational db. Usefull for testing or small projects",
5
5
  "main": "lib/index.js",
6
6
  "private": false,
@@ -43,12 +43,12 @@
43
43
  "@spinajs/exceptions": "^1.2.127",
44
44
  "@spinajs/log": "^1.2.137",
45
45
  "@spinajs/orm": "^1.2.140",
46
- "@spinajs/rbac": "^1.2.140",
46
+ "@spinajs/rbac": "^1.2.152",
47
47
  "@spinajs/reflection": "^1.2.137",
48
48
  "luxon": "^2.4.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@spinajs/orm-sqlite": "^1.2.140"
52
52
  },
53
- "gitHead": "4e24f37f4f53b6b4d14981f8a46b4351f98f4ab3"
53
+ "gitHead": "c18f00316083d2ce7a080572b833cb4cc37bef7d"
54
54
  }