@kipicore/dbcore 1.1.133 → 1.1.134
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/dist/db/psql/migrations/20251205062200-add_ids_subjectHFee.js +0 -11
- package/dist/db/psql/migrations/20251210113530-id_add_role.js +0 -11
- package/dist/db/psql/migrations/20251210122210-id_add_userHasRole.js +0 -11
- package/dist/db/psql/migrations/20251211051454-add-acl_id_.d.ts +2 -0
- package/dist/db/psql/migrations/20251211051454-add-acl_id_.js +33 -0
- package/dist/db/psql/migrations/20251211051744-add-acl_id_subject_has_fee.d.ts +2 -0
- package/dist/db/psql/migrations/20251211051744-add-acl_id_subject_has_fee.js +44 -0
- package/dist/db/psql/migrations/20251211051953-add-acl_id_user_has_role.d.ts +2 -0
- package/dist/db/psql/migrations/20251211051953-add-acl_id_user_has_role.js +33 -0
- package/dist/db/psql/migrations/20251211052218-remove_wrong_acl_id.d.ts +1 -0
- package/dist/db/psql/migrations/20251211052218-remove_wrong_acl_id.js +18 -0
- package/package.json +1 -1
|
@@ -17,14 +17,6 @@ const up = async (queryInterface, Sequelize) => {
|
|
|
17
17
|
field: 'batch_type',
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
if (!table.academic_calender_id) {
|
|
21
|
-
await queryInterface.addColumn('subject_has_fee', 'academic_calender_id', {
|
|
22
|
-
type: Sequelize.UUID,
|
|
23
|
-
defaultValue: null,
|
|
24
|
-
allowNull: true,
|
|
25
|
-
field: 'academic_calender_id',
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
20
|
};
|
|
29
21
|
const down = async (queryInterface, Sequelize) => {
|
|
30
22
|
const table = await queryInterface.describeTable('subject_has_fee');
|
|
@@ -34,9 +26,6 @@ const down = async (queryInterface, Sequelize) => {
|
|
|
34
26
|
if (table.batch_type) {
|
|
35
27
|
await queryInterface.removeColumn('subject_has_fee', 'batch_type');
|
|
36
28
|
}
|
|
37
|
-
if (table.academic_calender_id) {
|
|
38
|
-
await queryInterface.removeColumn('subject_has_fee', 'academic_calender_id');
|
|
39
|
-
}
|
|
40
29
|
};
|
|
41
30
|
module.exports = {
|
|
42
31
|
up,
|
|
@@ -9,23 +9,12 @@ const up = async (queryInterface, Sequelize) => {
|
|
|
9
9
|
field: 'old_id',
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
|
-
if (!table.academic_calender_id) {
|
|
13
|
-
await queryInterface.addColumn('roles', 'academic_calender_id', {
|
|
14
|
-
type: Sequelize.UUID,
|
|
15
|
-
defaultValue: null,
|
|
16
|
-
allowNull: true,
|
|
17
|
-
field: 'academic_calender_id',
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
12
|
};
|
|
21
13
|
const down = async (queryInterface, Sequelize) => {
|
|
22
14
|
const table = await queryInterface.describeTable('roles');
|
|
23
15
|
if (table.old_id) {
|
|
24
16
|
await queryInterface.removeColumn('roles', 'old_id');
|
|
25
17
|
}
|
|
26
|
-
if (table.academic_calender_id) {
|
|
27
|
-
await queryInterface.removeColumn('roles', 'academic_calender_id');
|
|
28
|
-
}
|
|
29
18
|
};
|
|
30
19
|
module.exports = {
|
|
31
20
|
up,
|
|
@@ -9,23 +9,12 @@ const up = async (queryInterface, Sequelize) => {
|
|
|
9
9
|
field: 'old_id',
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
|
-
if (!table.academic_calender_id) {
|
|
13
|
-
await queryInterface.addColumn('user_has_roles', 'academic_calender_id', {
|
|
14
|
-
type: Sequelize.UUID,
|
|
15
|
-
defaultValue: null,
|
|
16
|
-
allowNull: true,
|
|
17
|
-
field: 'academic_calender_id',
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
12
|
};
|
|
21
13
|
const down = async (queryInterface, Sequelize) => {
|
|
22
14
|
const table = await queryInterface.describeTable('user_has_roles');
|
|
23
15
|
if (table.old_id) {
|
|
24
16
|
await queryInterface.removeColumn('user_has_roles', 'old_id');
|
|
25
17
|
}
|
|
26
|
-
if (table.academic_calender_id) {
|
|
27
|
-
await queryInterface.removeColumn('user_has_roles', 'academic_calender_id');
|
|
28
|
-
}
|
|
29
18
|
};
|
|
30
19
|
module.exports = {
|
|
31
20
|
up,
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const up = async (queryInterface, Sequelize) => {
|
|
3
|
+
const table = await queryInterface.describeTable('roles');
|
|
4
|
+
if (!table.old_id) {
|
|
5
|
+
await queryInterface.addColumn('roles', 'old_id', {
|
|
6
|
+
type: Sequelize.UUID,
|
|
7
|
+
defaultValue: null,
|
|
8
|
+
allowNull: true,
|
|
9
|
+
field: 'old_id',
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
if (!table.academic_calendar_id) {
|
|
13
|
+
await queryInterface.addColumn('roles', 'academic_calendar_id', {
|
|
14
|
+
type: Sequelize.UUID,
|
|
15
|
+
defaultValue: null,
|
|
16
|
+
allowNull: true,
|
|
17
|
+
field: 'academic_calendar_id',
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
const down = async (queryInterface, Sequelize) => {
|
|
22
|
+
const table = await queryInterface.describeTable('roles');
|
|
23
|
+
if (table.old_id) {
|
|
24
|
+
await queryInterface.removeColumn('roles', 'old_id');
|
|
25
|
+
}
|
|
26
|
+
if (table.academic_calendar_id) {
|
|
27
|
+
await queryInterface.removeColumn('roles', 'academic_calendar_id');
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
module.exports = {
|
|
31
|
+
up,
|
|
32
|
+
down,
|
|
33
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const up = async (queryInterface, Sequelize) => {
|
|
3
|
+
const table = await queryInterface.describeTable('subject_has_fee');
|
|
4
|
+
if (!table.batch_id) {
|
|
5
|
+
await queryInterface.addColumn('subject_has_fee', 'batch_id', {
|
|
6
|
+
type: Sequelize.UUID,
|
|
7
|
+
defaultValue: null,
|
|
8
|
+
allowNull: true,
|
|
9
|
+
field: 'batch_id',
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
if (!table.batch_type) {
|
|
13
|
+
await queryInterface.addColumn('subject_has_fee', 'batch_type', {
|
|
14
|
+
type: Sequelize.UUID,
|
|
15
|
+
defaultValue: null,
|
|
16
|
+
allowNull: true,
|
|
17
|
+
field: 'batch_type',
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
if (!table.academic_calendar_id) {
|
|
21
|
+
await queryInterface.addColumn('subject_has_fee', 'academic_calendar_id', {
|
|
22
|
+
type: Sequelize.UUID,
|
|
23
|
+
defaultValue: null,
|
|
24
|
+
allowNull: true,
|
|
25
|
+
field: 'academic_calendar_id',
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
const down = async (queryInterface, Sequelize) => {
|
|
30
|
+
const table = await queryInterface.describeTable('subject_has_fee');
|
|
31
|
+
if (table.batch_id) {
|
|
32
|
+
await queryInterface.removeColumn('subject_has_fee', 'batch_id');
|
|
33
|
+
}
|
|
34
|
+
if (table.batch_type) {
|
|
35
|
+
await queryInterface.removeColumn('subject_has_fee', 'batch_type');
|
|
36
|
+
}
|
|
37
|
+
if (table.academic_calender_id) {
|
|
38
|
+
await queryInterface.removeColumn('subject_has_fee', 'academic_calendar_id');
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
module.exports = {
|
|
42
|
+
up,
|
|
43
|
+
down,
|
|
44
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const up = async (queryInterface, Sequelize) => {
|
|
3
|
+
const table = await queryInterface.describeTable('user_has_roles');
|
|
4
|
+
if (!table.old_id) {
|
|
5
|
+
await queryInterface.addColumn('user_has_roles', 'old_id', {
|
|
6
|
+
type: Sequelize.UUID,
|
|
7
|
+
defaultValue: null,
|
|
8
|
+
allowNull: true,
|
|
9
|
+
field: 'old_id',
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
if (!table.academic_calendar_id) {
|
|
13
|
+
await queryInterface.addColumn('user_has_roles', 'academic_calendar_id', {
|
|
14
|
+
type: Sequelize.UUID,
|
|
15
|
+
defaultValue: null,
|
|
16
|
+
allowNull: true,
|
|
17
|
+
field: 'academic_calendar_id',
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
const down = async (queryInterface, Sequelize) => {
|
|
22
|
+
const table = await queryInterface.describeTable('user_has_roles');
|
|
23
|
+
if (table.old_id) {
|
|
24
|
+
await queryInterface.removeColumn('user_has_roles', 'old_id');
|
|
25
|
+
}
|
|
26
|
+
if (table.academic_calendar_id) {
|
|
27
|
+
await queryInterface.removeColumn('user_has_roles', 'academic_calendar_id');
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
module.exports = {
|
|
31
|
+
up,
|
|
32
|
+
down,
|
|
33
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function up(queryInterface: any, Sequelize: any): Promise<void>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const up = async (queryInterface, Sequelize) => {
|
|
3
|
+
const table = await queryInterface.describeTable('subject_has_fee');
|
|
4
|
+
if (table.academic_calender_id) {
|
|
5
|
+
await queryInterface.removeColumn('subject_has_fee', 'academic_calender_id');
|
|
6
|
+
}
|
|
7
|
+
const roleTable = await queryInterface.describeTable('roles');
|
|
8
|
+
if (roleTable.academic_calender_id) {
|
|
9
|
+
await queryInterface.removeColumn('roles', 'academic_calender_id');
|
|
10
|
+
}
|
|
11
|
+
const userRoleTable = await queryInterface.describeTable('user_has_roles');
|
|
12
|
+
if (userRoleTable.academic_calender_id) {
|
|
13
|
+
await queryInterface.removeColumn('user_has_roles', 'academic_calender_id');
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
module.exports = {
|
|
17
|
+
up,
|
|
18
|
+
};
|
package/package.json
CHANGED