@hedhog/admin 0.0.67 → 0.0.69

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/hedhog.yaml CHANGED
@@ -986,14 +986,10 @@ data:
986
986
  pt: Autenticador
987
987
  slug: authenticator
988
988
  users:
989
- - name:
990
- en: Administrator
991
- pt: Administrador
989
+ - name: Administrator
992
990
  email: root@hedhog.com
993
991
  password: changeme
994
- - name:
995
- en: User
996
- pt: Usuário
992
+ - name: User
997
993
  email: user@hedhog.com
998
994
  password: changeme
999
995
  roles:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedhog/admin",
3
- "version": "0.0.67",
3
+ "version": "0.0.69",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -8,12 +8,6 @@ export class Migrate implements MigrationInterface {
8
8
  name: 'countries',
9
9
  columns: [
10
10
  idColumn(),
11
- {
12
- name: 'name',
13
- type: 'varchar',
14
- length: '50',
15
- isNullable: false,
16
- },
17
11
  {
18
12
  name: 'code',
19
13
  type: 'char',
@@ -27,6 +21,36 @@ export class Migrate implements MigrationInterface {
27
21
  true,
28
22
  );
29
23
 
24
+ await queryRunner.createTable(
25
+ new Table({
26
+ name: 'country_translations',
27
+ columns: [
28
+ foreignColumn({ name: 'country_id', isPrimary: true }),
29
+ foreignColumn({ name: 'locale_id', isPrimary: true }),
30
+ {
31
+ name: 'name',
32
+ type: 'varchar',
33
+ },
34
+ timestampColumn(),
35
+ timestampColumn('updated_at'),
36
+ ],
37
+ foreignKeys: [
38
+ {
39
+ columnNames: ['country_id'],
40
+ referencedColumnNames: ['id'],
41
+ referencedTableName: 'countries',
42
+ onDelete: 'CASCADE',
43
+ },
44
+ {
45
+ columnNames: ['locale_id'],
46
+ referencedColumnNames: ['id'],
47
+ referencedTableName: 'locales',
48
+ onDelete: 'CASCADE',
49
+ },
50
+ ],
51
+ }),
52
+ );
53
+
30
54
  await queryRunner.createTable(
31
55
  new Table({
32
56
  name: 'locales',