@hedhog/admin 0.0.34 → 0.0.36
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -37,11 +37,13 @@ export class Migrate implements MigrationInterface {
|
|
37
37
|
name: 'locale_id',
|
38
38
|
type: 'int',
|
39
39
|
unsigned: true,
|
40
|
+
isPrimary: true,
|
40
41
|
},
|
41
42
|
{
|
42
43
|
name: 'group_id',
|
43
44
|
type: 'int',
|
44
45
|
unsigned: true,
|
46
|
+
isPrimary: true,
|
45
47
|
},
|
46
48
|
{
|
47
49
|
name: 'name',
|
@@ -94,7 +96,7 @@ export class Migrate implements MigrationInterface {
|
|
94
96
|
name: 'type',
|
95
97
|
type: 'enum',
|
96
98
|
enum: ['string', 'number', 'boolean', 'json'],
|
97
|
-
default: 'string',
|
99
|
+
default: "'string'",
|
98
100
|
},
|
99
101
|
{
|
100
102
|
name: 'value',
|
@@ -118,7 +118,7 @@ export class Migrate implements MigrationInterface {
|
|
118
118
|
.returning('id')
|
119
119
|
.execute();
|
120
120
|
|
121
|
-
const settingGroupId = settingGroup.
|
121
|
+
const settingGroupId = settingGroup.raw[0].id;
|
122
122
|
|
123
123
|
await queryRunner.manager
|
124
124
|
.createQueryBuilder()
|
@@ -159,7 +159,7 @@ export class Migrate implements MigrationInterface {
|
|
159
159
|
.returning('id')
|
160
160
|
.execute();
|
161
161
|
|
162
|
-
const settingId = setting.
|
162
|
+
const settingId = setting.raw[0].id;
|
163
163
|
|
164
164
|
await queryRunner.manager
|
165
165
|
.createQueryBuilder()
|