@hedhog/admin 0.0.61 → 0.0.63
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/migrations/migrate-01.ts +0 -43
- package/src/migrations/migrate-13.ts +2 -0
- package/src/migrations/migrate-14.ts +2 -0
- package/src/migrations/migrate-15.ts +2 -0
- package/src/migrations/migrate-16.ts +2 -0
- package/src/migrations/migrate-17.ts +2 -0
- package/src/migrations/migrate-18.ts +2 -0
- package/src/migrations/migrate-20.ts +2 -0
package/package.json
CHANGED
@@ -63,49 +63,6 @@ export class Migrate implements MigrationInterface {
|
|
63
63
|
],
|
64
64
|
}),
|
65
65
|
);
|
66
|
-
|
67
|
-
const countryUSA = await queryRunner.manager
|
68
|
-
.createQueryBuilder()
|
69
|
-
.select()
|
70
|
-
.from('countries', 'c')
|
71
|
-
.where('code = :code', { code: 'USA' })
|
72
|
-
.execute();
|
73
|
-
const countryBRA = await queryRunner.manager
|
74
|
-
.createQueryBuilder()
|
75
|
-
.select()
|
76
|
-
.from('countries', 'c')
|
77
|
-
.where('code = :code', { code: 'BRA' })
|
78
|
-
.execute();
|
79
|
-
|
80
|
-
const locales = [
|
81
|
-
{
|
82
|
-
id: 0,
|
83
|
-
code: 'en',
|
84
|
-
region: 'US',
|
85
|
-
country_id: countryUSA[0].id,
|
86
|
-
},
|
87
|
-
{
|
88
|
-
id: 0,
|
89
|
-
code: 'pt',
|
90
|
-
region: 'BR',
|
91
|
-
country_id: countryBRA[0].id,
|
92
|
-
},
|
93
|
-
];
|
94
|
-
|
95
|
-
for (let index = 0; index < locales.length; index++) {
|
96
|
-
const localeId = await queryRunner.manager
|
97
|
-
.createQueryBuilder()
|
98
|
-
.insert()
|
99
|
-
.into('locales', ['code', 'region', 'country_id'])
|
100
|
-
.values({
|
101
|
-
code: locales[index].code,
|
102
|
-
region: locales[index].region,
|
103
|
-
country_id: locales[index].country_id,
|
104
|
-
})
|
105
|
-
.execute();
|
106
|
-
|
107
|
-
locales[index].id = localeId.raw.insertId;
|
108
|
-
}
|
109
66
|
}
|
110
67
|
|
111
68
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
@@ -2,6 +2,7 @@ import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
2
|
|
3
3
|
export class Migrate implements MigrationInterface {
|
4
4
|
async up(queryRunner: QueryRunner) {
|
5
|
+
/*
|
5
6
|
const menus = await queryRunner.manager
|
6
7
|
.createQueryBuilder()
|
7
8
|
.select()
|
@@ -18,6 +19,7 @@ export class Migrate implements MigrationInterface {
|
|
18
19
|
menu_id: menu.id,
|
19
20
|
});
|
20
21
|
}
|
22
|
+
*/
|
21
23
|
}
|
22
24
|
|
23
25
|
async down(queryRunner: QueryRunner) {
|
@@ -2,6 +2,7 @@ import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
2
|
|
3
3
|
export class Migrate implements MigrationInterface {
|
4
4
|
async up(queryRunner: QueryRunner) {
|
5
|
+
/*
|
5
6
|
const screenIdScreen = await queryRunner.manager
|
6
7
|
.createQueryBuilder()
|
7
8
|
.select()
|
@@ -71,6 +72,7 @@ export class Migrate implements MigrationInterface {
|
|
71
72
|
.execute();
|
72
73
|
}
|
73
74
|
}
|
75
|
+
*/
|
74
76
|
}
|
75
77
|
|
76
78
|
async down(queryRunner: QueryRunner) {
|
@@ -2,6 +2,7 @@ import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
2
|
|
3
3
|
export class Migrate implements MigrationInterface {
|
4
4
|
async up(queryRunner: QueryRunner) {
|
5
|
+
/*
|
5
6
|
await queryRunner.manager
|
6
7
|
.createQueryBuilder()
|
7
8
|
.insert()
|
@@ -12,6 +13,7 @@ export class Migrate implements MigrationInterface {
|
|
12
13
|
{ role_id: 3, user_id: 2 },
|
13
14
|
])
|
14
15
|
.execute();
|
16
|
+
*/
|
15
17
|
}
|
16
18
|
|
17
19
|
async down(queryRunner: QueryRunner) {
|
@@ -2,6 +2,7 @@ import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
2
|
|
3
3
|
export class Migrate implements MigrationInterface {
|
4
4
|
async up(queryRunner: QueryRunner) {
|
5
|
+
/*
|
5
6
|
const routes = await queryRunner.manager
|
6
7
|
.createQueryBuilder()
|
7
8
|
.select()
|
@@ -48,6 +49,7 @@ export class Migrate implements MigrationInterface {
|
|
48
49
|
})
|
49
50
|
.execute();
|
50
51
|
}
|
52
|
+
*/
|
51
53
|
}
|
52
54
|
|
53
55
|
async down(queryRunner: QueryRunner) {
|
@@ -2,6 +2,7 @@ import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
2
|
|
3
3
|
export class Migrate implements MigrationInterface {
|
4
4
|
async up(queryRunner: QueryRunner) {
|
5
|
+
/*
|
5
6
|
const screens = await queryRunner.manager
|
6
7
|
.createQueryBuilder()
|
7
8
|
.select()
|
@@ -19,6 +20,7 @@ export class Migrate implements MigrationInterface {
|
|
19
20
|
})
|
20
21
|
.execute();
|
21
22
|
}
|
23
|
+
*/
|
22
24
|
}
|
23
25
|
|
24
26
|
async down(queryRunner: QueryRunner) {
|
@@ -2,6 +2,7 @@ import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
2
|
|
3
3
|
export class Migrate implements MigrationInterface {
|
4
4
|
async up(queryRunner: QueryRunner) {
|
5
|
+
/*
|
5
6
|
const menus = await queryRunner.manager
|
6
7
|
.createQueryBuilder()
|
7
8
|
.select()
|
@@ -28,6 +29,7 @@ export class Migrate implements MigrationInterface {
|
|
28
29
|
role_id: 2,
|
29
30
|
menu_id: 1,
|
30
31
|
});
|
32
|
+
*/
|
31
33
|
}
|
32
34
|
|
33
35
|
async down(queryRunner: QueryRunner) {
|
@@ -2,6 +2,7 @@ import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
2
|
|
3
3
|
export class Migrate implements MigrationInterface {
|
4
4
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
5
|
+
/*
|
5
6
|
const groups = [
|
6
7
|
{
|
7
8
|
slug: 'file-storage',
|
@@ -295,6 +296,7 @@ export class Migrate implements MigrationInterface {
|
|
295
296
|
})
|
296
297
|
.execute();
|
297
298
|
}
|
299
|
+
*/
|
298
300
|
}
|
299
301
|
|
300
302
|
public async down(queryRunner: QueryRunner): Promise<void> {
|