@hedhog/admin 0.0.61 → 0.0.62

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedhog/admin",
3
- "version": "0.0.61",
3
+ "version": "0.0.62",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -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> {