@tomei/sso 0.50.2 → 0.50.3
Sign up to get free protection for your applications and to get access to all the features.
- package/migrations/20240527064926-create-system-privilege-table.js +1 -1
- package/migrations/20240528032229-user-privilege-table.js +5 -4
- package/migrations/20240528063003-create-group-privilege-table.js +5 -4
- package/migrations/20240528063051-create-group-object-privilege-table.js +1 -1
- package/migrations/20240528063107-create-user-object-privilege-table.js +5 -4
- package/package.json +1 -1
@@ -21,7 +21,7 @@ module.exports = {
|
|
21
21
|
onUpdate: 'CASCADE',
|
22
22
|
},
|
23
23
|
SystemPrivilegeId: {
|
24
|
-
type: Sequelize.STRING(
|
24
|
+
type: Sequelize.STRING(30),
|
25
25
|
allowNull: false,
|
26
26
|
references: {
|
27
27
|
model: 'sso_SystemPrivilege',
|
@@ -52,7 +52,9 @@ module.exports = {
|
|
52
52
|
},
|
53
53
|
UpdatedAt: {
|
54
54
|
allowNull: false,
|
55
|
-
defaultValue: Sequelize.literal(
|
55
|
+
defaultValue: Sequelize.literal(
|
56
|
+
'CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)',
|
57
|
+
),
|
56
58
|
type: Sequelize.DATE,
|
57
59
|
},
|
58
60
|
UpdatedById: {
|
@@ -65,11 +67,10 @@ module.exports = {
|
|
65
67
|
onDelete: 'CASCADE',
|
66
68
|
onUpdate: 'CASCADE',
|
67
69
|
},
|
68
|
-
|
69
70
|
});
|
70
71
|
},
|
71
72
|
|
72
73
|
async down(queryInterface, Sequelize) {
|
73
74
|
await queryInterface.dropTable('sso_UserPrivilege');
|
74
|
-
}
|
75
|
+
},
|
75
76
|
};
|
@@ -21,7 +21,7 @@ module.exports = {
|
|
21
21
|
onUpdate: 'CASCADE',
|
22
22
|
},
|
23
23
|
SystemPrivilegeId: {
|
24
|
-
type: Sequelize.STRING(
|
24
|
+
type: Sequelize.STRING(30),
|
25
25
|
allowNull: false,
|
26
26
|
references: {
|
27
27
|
model: 'sso_SystemPrivilege',
|
@@ -62,7 +62,9 @@ module.exports = {
|
|
62
62
|
},
|
63
63
|
UpdatedAt: {
|
64
64
|
allowNull: false,
|
65
|
-
defaultValue: Sequelize.literal(
|
65
|
+
defaultValue: Sequelize.literal(
|
66
|
+
'CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)',
|
67
|
+
),
|
66
68
|
type: Sequelize.DATE,
|
67
69
|
},
|
68
70
|
UpdatedById: {
|
@@ -75,11 +77,10 @@ module.exports = {
|
|
75
77
|
onDelete: 'CASCADE',
|
76
78
|
onUpdate: 'CASCADE',
|
77
79
|
},
|
78
|
-
|
79
80
|
});
|
80
81
|
},
|
81
82
|
|
82
83
|
async down(queryInterface, Sequelize) {
|
83
84
|
await queryInterface.dropTable('sso_GroupPrivilege');
|
84
|
-
}
|
85
|
+
},
|
85
86
|
};
|
@@ -21,7 +21,7 @@ module.exports = {
|
|
21
21
|
onUpdate: 'CASCADE',
|
22
22
|
},
|
23
23
|
SystemPrivilegeId: {
|
24
|
-
type: Sequelize.STRING(
|
24
|
+
type: Sequelize.STRING(30),
|
25
25
|
allowNull: false,
|
26
26
|
references: {
|
27
27
|
model: 'sso_SystemPrivilege',
|
@@ -60,7 +60,9 @@ module.exports = {
|
|
60
60
|
},
|
61
61
|
UpdatedAt: {
|
62
62
|
allowNull: false,
|
63
|
-
defaultValue: Sequelize.literal(
|
63
|
+
defaultValue: Sequelize.literal(
|
64
|
+
'CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)',
|
65
|
+
),
|
64
66
|
type: Sequelize.DATE,
|
65
67
|
},
|
66
68
|
UpdatedById: {
|
@@ -73,11 +75,10 @@ module.exports = {
|
|
73
75
|
onDelete: 'CASCADE',
|
74
76
|
onUpdate: 'CASCADE',
|
75
77
|
},
|
76
|
-
|
77
78
|
});
|
78
79
|
},
|
79
80
|
|
80
81
|
async down(queryInterface, Sequelize) {
|
81
82
|
await queryInterface.dropTable('sso_UserObjectPrivilege');
|
82
|
-
}
|
83
|
+
},
|
83
84
|
};
|