@hedhog/admin 0.0.48 → 0.0.50
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -52,9 +52,10 @@ export class Migrate implements MigrationInterface {
|
|
52
52
|
timestampColumn(),
|
53
53
|
timestampColumn('updated_at'),
|
54
54
|
],
|
55
|
-
|
55
|
+
indices: [
|
56
56
|
{
|
57
57
|
columnNames: ['locale_id', 'namespace_id', 'name'],
|
58
|
+
isUnique: true,
|
58
59
|
},
|
59
60
|
],
|
60
61
|
foreignKeys: [
|
@@ -17,6 +17,7 @@ export class Migrate implements MigrationInterface {
|
|
17
17
|
{
|
18
18
|
name: 'slug',
|
19
19
|
type: 'varchar',
|
20
|
+
isUnique: true,
|
20
21
|
},
|
21
22
|
{
|
22
23
|
name: 'url',
|
@@ -37,7 +38,7 @@ export class Migrate implements MigrationInterface {
|
|
37
38
|
timestampColumn(),
|
38
39
|
timestampColumn('updated_at'),
|
39
40
|
],
|
40
|
-
|
41
|
+
indices: [{ columnNames: ['slug'], isUnique: true }],
|
41
42
|
}),
|
42
43
|
);
|
43
44
|
|
@@ -21,14 +21,12 @@ export class Migrate implements MigrationInterface {
|
|
21
21
|
timestampColumn(),
|
22
22
|
timestampColumn('updated_at'),
|
23
23
|
],
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
columnNames: ['url', 'method'],
|
31
|
-
name: 'unique_routes',
|
24
|
+
indices: [
|
25
|
+
{
|
26
|
+
columnNames: ['url', 'method'],
|
27
|
+
isUnique: true,
|
28
|
+
},
|
29
|
+
],
|
32
30
|
}),
|
33
31
|
);
|
34
32
|
|