@kipicore/dbcore 1.1.122 → 1.1.124
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/20251201085926-add_academicCalenderId_to_announcement.d.ts +2 -0
- package/dist/db/psql/migrations/20251201085926-add_academicCalenderId_to_announcement.js +23 -0
- package/dist/db/psql/migrations/20251201090537-add_academicCalenderId_to_userHasAnnouncement.d.ts +2 -0
- package/dist/db/psql/migrations/20251201090537-add_academicCalenderId_to_userHasAnnouncement.js +23 -0
- package/dist/db/psql/migrations/20251201092621-add_academicCalenderId_to_UHBatch.d.ts +2 -0
- package/dist/db/psql/migrations/20251201092621-add_academicCalenderId_to_UHBatch.js +23 -0
- package/dist/db/psql/migrations/20251201093210-add_academicCalenderId_to_classroom.d.ts +2 -0
- package/dist/db/psql/migrations/20251201093210-add_academicCalenderId_to_classroom.js +23 -0
- package/dist/db/psql/migrations/20251201093644-add_academicCalenderId_to_BankAccD.d.ts +2 -0
- package/dist/db/psql/migrations/20251201093644-add_academicCalenderId_to_BankAccD.js +23 -0
- package/dist/db/psql/migrations/20251201094148-add_academicCalenderId_to_workingD.d.ts +2 -0
- package/dist/db/psql/migrations/20251201094148-add_academicCalenderId_to_workingD.js +23 -0
- package/dist/db/psql/migrations/20251201094533-add_academicCalenderId_to_workingS.d.ts +2 -0
- package/dist/db/psql/migrations/20251201094533-add_academicCalenderId_to_workingS.js +23 -0
- package/dist/db/psql/migrations/20251201094828-add-academic-calendar-id-to-userhashomework.d.ts +2 -0
- package/dist/db/psql/migrations/20251201094828-add-academic-calendar-id-to-userhashomework.js +23 -0
- package/dist/db/psql/migrations/20251201095025-add_academicCalenderId_to_batchSubBookA.d.ts +2 -0
- package/dist/db/psql/migrations/20251201095025-add_academicCalenderId_to_batchSubBookA.js +23 -0
- package/dist/db/psql/migrations/20251201095408-add_academicCalenderId_to_batchSubProA.d.ts +2 -0
- package/dist/db/psql/migrations/20251201095408-add_academicCalenderId_to_batchSubProA.js +23 -0
- package/dist/db/psql/migrations/20251201100111-add_academicCalenderId_to_projectAOp.d.ts +2 -0
- package/dist/db/psql/migrations/20251201100111-add_academicCalenderId_to_projectAOp.js +23 -0
- package/dist/db/psql/migrations/20251201100553-add-academic-calendar-id-to-homework.d.ts +2 -0
- package/dist/db/psql/migrations/20251201100553-add-academic-calendar-id-to-homework.js +23 -0
- package/dist/db/psql/migrations/20251201100901-add_academicCalenderId_to_userHRollN.d.ts +2 -0
- package/dist/db/psql/migrations/20251201100901-add_academicCalenderId_to_userHRollN.js +23 -0
- package/dist/db/psql/migrations/20251201101407-add_academicCalenderId_to_feeHistory.d.ts +2 -0
- package/dist/db/psql/migrations/20251201101407-add_academicCalenderId_to_feeHistory.js +23 -0
- package/dist/db/psql/migrations/20251201102129-add_academicCalenderId_to_feeReminder.d.ts +2 -0
- package/dist/db/psql/migrations/20251201102129-add_academicCalenderId_to_feeReminder.js +23 -0
- package/dist/db/psql/migrations/20251201102622-add_academicCalenderId_to_paymentTerms.d.ts +2 -0
- package/dist/db/psql/migrations/20251201102622-add_academicCalenderId_to_paymentTerms.js +23 -0
- package/dist/db/psql/migrations/20251201103134-add_academicCalenderId_to_subjectHFee.d.ts +2 -0
- package/dist/db/psql/migrations/20251201103134-add_academicCalenderId_to_subjectHFee.js +23 -0
- package/dist/db/psql/migrations/20251201103447-add_academicCalenderId_to_lectureHistory.d.ts +2 -0
- package/dist/db/psql/migrations/20251201103447-add_academicCalenderId_to_lectureHistory.js +23 -0
- package/dist/db/psql/migrations/20251201103551-add-academic-calendar-id-to-greetings.d.ts +2 -0
- package/dist/db/psql/migrations/20251201103551-add-academic-calendar-id-to-greetings.js +23 -0
- package/dist/db/psql/migrations/20251201104336-add_academicCalenderId_to_lecture.d.ts +2 -0
- package/dist/db/psql/migrations/20251201104336-add_academicCalenderId_to_lecture.js +23 -0
- package/dist/db/psql/migrations/20251202041045-add_academic_Cal_masterL.d.ts +2 -0
- package/dist/db/psql/migrations/20251202041045-add_academic_Cal_masterL.js +21 -0
- package/dist/db/psql/migrations/20251202042541-add_academic_Cal_offer.d.ts +2 -0
- package/dist/db/psql/migrations/20251202042541-add_academic_Cal_offer.js +21 -0
- package/dist/db/psql/migrations/20251202042809-add-academic-calendar-id-to-schoolOffer.d.ts +2 -0
- package/dist/db/psql/migrations/20251202042809-add-academic-calendar-id-to-schoolOffer.js +23 -0
- package/dist/db/psql/migrations/20251202043001-add_academic_Cal_userHOffer.d.ts +2 -0
- package/dist/db/psql/migrations/20251202043001-add_academic_Cal_userHOffer.js +21 -0
- package/dist/db/psql/migrations/20251202043722-add_academic_Cal_pdcCheque.d.ts +2 -0
- package/dist/db/psql/migrations/20251202043722-add_academic_Cal_pdcCheque.js +21 -0
- package/dist/db/psql/migrations/20251202044220-add_academic_Cal_pdcChequeHistory.d.ts +2 -0
- package/dist/db/psql/migrations/20251202044220-add_academic_Cal_pdcChequeHistory.js +21 -0
- package/dist/db/psql/migrations/20251204101602-add_academic_cal_slot.d.ts +2 -0
- package/dist/db/psql/migrations/20251204101602-add_academic_cal_slot.js +21 -0
- package/dist/db/psql/migrations/20251204102512-add_academic_cal_syllabus.d.ts +2 -0
- package/dist/db/psql/migrations/20251204102512-add_academic_cal_syllabus.js +21 -0
- package/dist/db/psql/migrations/20251204103002-add_academic_cal_testimonial.d.ts +2 -0
- package/dist/db/psql/migrations/20251204103002-add_academic_cal_testimonial.js +21 -0
- package/dist/db/psql/migrations/20251204103254-add_academic_cal_trip.d.ts +2 -0
- package/dist/db/psql/migrations/20251204103254-add_academic_cal_trip.js +21 -0
- package/dist/db/psql/migrations/20251204103624-add_academic_cal_userBA.d.ts +2 -0
- package/dist/db/psql/migrations/20251204103624-add_academic_cal_userBA.js +21 -0
- package/dist/db/psql/migrations/20251204104027-add_academic_cal_userFeeType.d.ts +2 -0
- package/dist/db/psql/migrations/20251204104027-add_academic_cal_userFeeType.js +21 -0
- package/dist/db/psql/migrations/20251204104738-add_academic_cal_userHInventory.d.ts +2 -0
- package/dist/db/psql/migrations/20251204104738-add_academic_cal_userHInventory.js +21 -0
- package/dist/db/psql/migrations/20251204105047-add_academic_cal_userHInvenH.d.ts +2 -0
- package/dist/db/psql/migrations/20251204105047-add_academic_cal_userHInvenH.js +21 -0
- package/dist/db/psql/migrations/20251204105717-add_academic_cal_userHLeave.d.ts +2 -0
- package/dist/db/psql/migrations/20251204105717-add_academic_cal_userHLeave.js +21 -0
- package/dist/db/psql/migrations/20251204110256-add_academic_cal_userHLH.d.ts +2 -0
- package/dist/db/psql/migrations/20251204110256-add_academic_cal_userHLH.js +21 -0
- package/dist/db/psql/migrations/20251204110629-add_academic_cal_userLeaveReq.d.ts +2 -0
- package/dist/db/psql/migrations/20251204110629-add_academic_cal_userLeaveReq.js +21 -0
- package/dist/db/psql/migrations/20251204110928-add_academic_cal_userproAssessOp.d.ts +2 -0
- package/dist/db/psql/migrations/20251204110928-add_academic_cal_userproAssessOp.js +21 -0
- package/dist/db/psql/migrations/20251204112518-add_batchId_type_subHFee.d.ts +2 -0
- package/dist/db/psql/migrations/20251204112518-add_batchId_type_subHFee.js +31 -0
- package/dist/db/psql/migrations/20251208110114-add-thumbnail-introvideo-to-courses.d.ts +2 -0
- package/dist/db/psql/migrations/20251208110114-add-thumbnail-introvideo-to-courses.js +31 -0
- package/dist/db/psql/migrations/20251208112241-add-new-field.d.ts +2 -0
- package/dist/db/psql/migrations/20251208112241-add-new-field.js +21 -0
- package/dist/interfaces/announcementInterface.d.ts +1 -0
- package/dist/interfaces/approvalRequestInterface.d.ts +1 -0
- package/dist/interfaces/attendanceInterface.d.ts +1 -0
- package/dist/interfaces/bDayWishInterface.d.ts +1 -0
- package/dist/interfaces/bankAccountDetailsInterface.d.ts +1 -0
- package/dist/interfaces/batchSubjectBookAssessmentInterface.d.ts +1 -0
- package/dist/interfaces/batchSubjectProjectAssessmentInterface.d.ts +1 -0
- package/dist/interfaces/certificatesHistoryInterface.d.ts +1 -0
- package/dist/interfaces/certificatesManagementInterface.d.ts +1 -0
- package/dist/interfaces/classRoomInterface.d.ts +1 -0
- package/dist/interfaces/courseInterface.d.ts +2 -0
- package/dist/interfaces/dailyBookInterface.d.ts +1 -0
- package/dist/interfaces/eventInterface.d.ts +1 -0
- package/dist/interfaces/examGroupInterface.d.ts +1 -0
- package/dist/interfaces/examHasAnswerSheetInterface.d.ts +1 -0
- package/dist/interfaces/examInterface.d.ts +1 -0
- package/dist/interfaces/feeHistoryInterface.d.ts +1 -0
- package/dist/interfaces/feeReminderInterface.d.ts +1 -0
- package/dist/interfaces/feeReminderSettingInterface.d.ts +1 -0
- package/dist/interfaces/feeReminderTypeInterface.d.ts +1 -0
- package/dist/interfaces/feeTypeInterface.d.ts +1 -0
- package/dist/interfaces/generateIdCardInterface.d.ts +1 -0
- package/dist/interfaces/greetingsInterface.d.ts +1 -0
- package/dist/interfaces/holidayInterface.d.ts +1 -0
- package/dist/interfaces/homeworkInterface.d.ts +1 -0
- package/dist/interfaces/lectureHistoryInterface.d.ts +1 -0
- package/dist/interfaces/lectureInterface.d.ts +1 -0
- package/dist/interfaces/masterLeaveInterface.d.ts +1 -0
- package/dist/interfaces/offersInterface.d.ts +1 -0
- package/dist/interfaces/paymentTermsInterface.d.ts +1 -0
- package/dist/interfaces/pdcChequeInterface.d.ts +1 -0
- package/dist/interfaces/pdcHistoryInterface.d.ts +1 -0
- package/dist/interfaces/projectAssessmentOptionInterface.d.ts +1 -0
- package/dist/interfaces/replaceTeacherInterface.d.ts +1 -0
- package/dist/interfaces/schoolFeeInterface.d.ts +1 -0
- package/dist/interfaces/schoolOfferInterface.d.ts +1 -0
- package/dist/interfaces/slotInterface.d.ts +1 -0
- package/dist/interfaces/subjectHasFeeInterface.d.ts +1 -1
- package/dist/interfaces/syllabusInterface.d.ts +1 -0
- package/dist/interfaces/taskManagementInterface.d.ts +1 -0
- package/dist/interfaces/testimonialInterface.d.ts +1 -0
- package/dist/interfaces/tripInterface.d.ts +1 -0
- package/dist/interfaces/userBookAssessmentInterface.d.ts +1 -0
- package/dist/interfaces/userFeeTypeInterface.d.ts +1 -0
- package/dist/interfaces/userHasAnnouncementInterface.d.ts +1 -0
- package/dist/interfaces/userHasBatchInterface.d.ts +1 -0
- package/dist/interfaces/userHasHomeWorkInterface.d.ts +1 -0
- package/dist/interfaces/userHasInventoryHistoryInterface.d.ts +1 -0
- package/dist/interfaces/userHasInventoryInterface.d.ts +1 -0
- package/dist/interfaces/userHasLeaveHistoryInterface.d.ts +1 -0
- package/dist/interfaces/userHasLeaveInterface.d.ts +1 -0
- package/dist/interfaces/userHasOfferInterface.d.ts +1 -0
- package/dist/interfaces/userHasRollNumberInterface.d.ts +1 -0
- package/dist/interfaces/userInstituteMetaInterface.d.ts +1 -0
- package/dist/interfaces/userLeaveRequestInterface.d.ts +1 -0
- package/dist/interfaces/userProjectAssessmentOptionInterface.d.ts +1 -0
- package/dist/interfaces/workingDayInterface.d.ts +1 -0
- package/dist/interfaces/workingShiftInterface.d.ts +1 -0
- package/dist/models/mongodb/approvalRequestModel.js +4 -0
- package/dist/models/mongodb/attendanceModel.js +4 -0
- package/dist/models/mongodb/bDayWishModel.js +1 -0
- package/dist/models/mongodb/certificatesHistoryModel.js +4 -0
- package/dist/models/mongodb/certificatesManagementModel.js +4 -0
- package/dist/models/mongodb/dailyBookModel.js +4 -0
- package/dist/models/mongodb/eventModel.js +4 -0
- package/dist/models/mongodb/examGroupModel.js +4 -0
- package/dist/models/mongodb/examHasAnswerSheetModel.js +4 -0
- package/dist/models/mongodb/examModel.js +4 -0
- package/dist/models/mongodb/feeReminderTypeModel.js +4 -0
- package/dist/models/mongodb/generateIdCardModel.js +4 -0
- package/dist/models/mongodb/holidayModel.js +4 -0
- package/dist/models/mongodb/replaceTeacherModel.js +4 -0
- package/dist/models/mongodb/schoolFeeModel.js +4 -0
- package/dist/models/mongodb/taskManagementModel.js +4 -0
- package/dist/models/mongodb/userInstituteMetaModel.js +4 -0
- package/dist/models/psql/announcementModel.d.ts +1 -0
- package/dist/models/psql/announcementModel.js +14 -1
- package/dist/models/psql/bankAccountDetailsModel.d.ts +1 -0
- package/dist/models/psql/bankAccountDetailsModel.js +10 -1
- package/dist/models/psql/batchSubjectBookAssessmentModel.d.ts +1 -0
- package/dist/models/psql/batchSubjectBookAssessmentModel.js +10 -1
- package/dist/models/psql/batchSubjectProjectAssessmentModel.d.ts +1 -0
- package/dist/models/psql/batchSubjectProjectAssessmentModel.js +10 -1
- package/dist/models/psql/classRoomModel.d.ts +1 -0
- package/dist/models/psql/classRoomModel.js +20 -1
- package/dist/models/psql/courseModel.d.ts +2 -0
- package/dist/models/psql/courseModel.js +27 -1
- package/dist/models/psql/feeHistoryModel.d.ts +1 -0
- package/dist/models/psql/feeHistoryModel.js +9 -1
- package/dist/models/psql/feeReminderModel.d.ts +1 -0
- package/dist/models/psql/feeReminderModel.js +14 -1
- package/dist/models/psql/feeReminderSettingModel.d.ts +1 -0
- package/dist/models/psql/feeReminderSettingModel.js +9 -1
- package/dist/models/psql/feeTypeModel.d.ts +1 -0
- package/dist/models/psql/feeTypeModel.js +14 -1
- package/dist/models/psql/greetingsModel.d.ts +1 -0
- package/dist/models/psql/greetingsModel.js +14 -1
- package/dist/models/psql/homeWorkModel.d.ts +1 -0
- package/dist/models/psql/homeWorkModel.js +14 -1
- package/dist/models/psql/lectureHistoryModel.d.ts +1 -0
- package/dist/models/psql/lectureHistoryModel.js +14 -1
- package/dist/models/psql/lectureModel.d.ts +1 -0
- package/dist/models/psql/lectureModel.js +14 -1
- package/dist/models/psql/masterLeaveModel.d.ts +1 -0
- package/dist/models/psql/masterLeaveModel.js +14 -1
- package/dist/models/psql/offerModel.d.ts +1 -0
- package/dist/models/psql/offerModel.js +13 -1
- package/dist/models/psql/paymentTermsModel.d.ts +1 -0
- package/dist/models/psql/paymentTermsModel.js +14 -1
- package/dist/models/psql/pdcChequeModel.d.ts +1 -0
- package/dist/models/psql/pdcChequeModel.js +14 -1
- package/dist/models/psql/pdcHistoryModel.d.ts +1 -0
- package/dist/models/psql/pdcHistoryModel.js +14 -1
- package/dist/models/psql/projectAssessmentOptionModel.d.ts +1 -0
- package/dist/models/psql/projectAssessmentOptionModel.js +10 -1
- package/dist/models/psql/schoolOfferModel.d.ts +1 -0
- package/dist/models/psql/schoolOfferModel.js +14 -1
- package/dist/models/psql/slotModel.d.ts +1 -0
- package/dist/models/psql/slotModel.js +14 -1
- package/dist/models/psql/subjectHasFeeModel.js +3 -3
- package/dist/models/psql/syllabusModel.d.ts +1 -0
- package/dist/models/psql/syllabusModel.js +14 -1
- package/dist/models/psql/testimonialModel.d.ts +1 -0
- package/dist/models/psql/testimonialModel.js +14 -1
- package/dist/models/psql/tripModel.d.ts +1 -0
- package/dist/models/psql/tripModel.js +14 -1
- package/dist/models/psql/userBookAssessmentModel.d.ts +1 -0
- package/dist/models/psql/userBookAssessmentModel.js +14 -1
- package/dist/models/psql/userFeeTypeModel.js +14 -1
- package/dist/models/psql/userHasAnnouncementModel.d.ts +1 -0
- package/dist/models/psql/userHasAnnouncementModel.js +14 -1
- package/dist/models/psql/userHasBatchModel.d.ts +1 -0
- package/dist/models/psql/userHasBatchModel.js +20 -1
- package/dist/models/psql/userHasHomeWorkModel.d.ts +1 -0
- package/dist/models/psql/userHasHomeWorkModel.js +14 -1
- package/dist/models/psql/userHasInventoryHistoryModel.d.ts +1 -0
- package/dist/models/psql/userHasInventoryHistoryModel.js +14 -1
- package/dist/models/psql/userHasInventoryModel.d.ts +1 -0
- package/dist/models/psql/userHasInventoryModel.js +14 -1
- package/dist/models/psql/userHasLeaveHistoryModel.d.ts +1 -0
- package/dist/models/psql/userHasLeaveHistoryModel.js +14 -1
- package/dist/models/psql/userHasLeaveModel.d.ts +1 -0
- package/dist/models/psql/userHasLeaveModel.js +14 -1
- package/dist/models/psql/userHasOfferModel.d.ts +1 -0
- package/dist/models/psql/userHasOfferModel.js +13 -1
- package/dist/models/psql/userHasRollNumberModel.d.ts +1 -0
- package/dist/models/psql/userHasRollNumberModel.js +14 -1
- package/dist/models/psql/userLeaveRequestModel.d.ts +1 -0
- package/dist/models/psql/userLeaveRequestModel.js +14 -1
- package/dist/models/psql/userProjectAssessmentOptionModel.d.ts +1 -0
- package/dist/models/psql/userProjectAssessmentOptionModel.js +14 -1
- package/dist/models/psql/workingDayModel.d.ts +1 -0
- package/dist/models/psql/workingDayModel.js +10 -1
- package/dist/models/psql/workingShiftModel.d.ts +1 -0
- package/dist/models/psql/workingShiftModel.js +10 -1
- package/package.json +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const up = async (queryInterface, Sequelize) => {
|
|
3
|
+
const table = await queryInterface.describeTable('announcementes');
|
|
4
|
+
// Check if column already exists
|
|
5
|
+
if (!table.academic_calendar_id) {
|
|
6
|
+
await queryInterface.addColumn('announcementes', 'academic_calendar_id', {
|
|
7
|
+
type: Sequelize.UUID,
|
|
8
|
+
allowNull: true,
|
|
9
|
+
field: 'academic_calendar_id',
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
const down = async (queryInterface, Sequelize) => {
|
|
14
|
+
const table = await queryInterface.describeTable('announcementes');
|
|
15
|
+
// Remove only if column exists
|
|
16
|
+
if (table.academic_calendar_id) {
|
|
17
|
+
await queryInterface.removeColumn('announcementes', 'academic_calendar_id');
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
module.exports = {
|
|
21
|
+
up,
|
|
22
|
+
down,
|
|
23
|
+
};
|
package/dist/db/psql/migrations/20251201090537-add_academicCalenderId_to_userHasAnnouncement.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const up = async (queryInterface, Sequelize) => {
|
|
3
|
+
const table = await queryInterface.describeTable('user_has_announcementes');
|
|
4
|
+
// Check if column already exists
|
|
5
|
+
if (!table.academic_calendar_id) {
|
|
6
|
+
await queryInterface.addColumn('user_has_announcementes', 'academic_calendar_id', {
|
|
7
|
+
type: Sequelize.UUID,
|
|
8
|
+
allowNull: true,
|
|
9
|
+
field: 'academic_calendar_id',
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
const down = async (queryInterface, Sequelize) => {
|
|
14
|
+
const table = await queryInterface.describeTable('user_has_announcementes');
|
|
15
|
+
// Remove only if column exists
|
|
16
|
+
if (table.academic_calendar_id) {
|
|
17
|
+
await queryInterface.removeColumn('user_has_announcementes', 'academic_calendar_id');
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
module.exports = {
|
|
21
|
+
up,
|
|
22
|
+
down,
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const up = async (queryInterface, Sequelize) => {
|
|
3
|
+
const table = await queryInterface.describeTable('user_has_batches');
|
|
4
|
+
// Check if column already exists
|
|
5
|
+
if (!table.academic_calendar_id) {
|
|
6
|
+
await queryInterface.addColumn('user_has_batches', 'academic_calendar_id', {
|
|
7
|
+
type: Sequelize.UUID,
|
|
8
|
+
allowNull: true,
|
|
9
|
+
field: 'academic_calendar_id',
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
const down = async (queryInterface, Sequelize) => {
|
|
14
|
+
const table = await queryInterface.describeTable('user_has_batches');
|
|
15
|
+
// Remove only if column exists
|
|
16
|
+
if (table.academic_calendar_id) {
|
|
17
|
+
await queryInterface.removeColumn('user_has_batches', 'academic_calendar_id');
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
module.exports = {
|
|
21
|
+
up,
|
|
22
|
+
down,
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const up = async (queryInterface, Sequelize) => {
|
|
3
|
+
const table = await queryInterface.describeTable('class_rooms');
|
|
4
|
+
// Check if column already exists
|
|
5
|
+
if (!table.academic_calendar_id) {
|
|
6
|
+
await queryInterface.addColumn('class_rooms', 'academic_calendar_id', {
|
|
7
|
+
type: Sequelize.UUID,
|
|
8
|
+
allowNull: true,
|
|
9
|
+
field: 'academic_calendar_id',
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
const down = async (queryInterface, Sequelize) => {
|
|
14
|
+
const table = await queryInterface.describeTable('class_rooms');
|
|
15
|
+
// Remove only if column exists
|
|
16
|
+
if (table.academic_calendar_id) {
|
|
17
|
+
await queryInterface.removeColumn('class_rooms', 'academic_calendar_id');
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
module.exports = {
|
|
21
|
+
up,
|
|
22
|
+
down,
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const up = async (queryInterface, Sequelize) => {
|
|
3
|
+
const table = await queryInterface.describeTable('bank_account_details');
|
|
4
|
+
// Check if column already exists
|
|
5
|
+
if (!table.academic_calendar_id) {
|
|
6
|
+
await queryInterface.addColumn('bank_account_details', 'academic_calendar_id', {
|
|
7
|
+
type: Sequelize.UUID,
|
|
8
|
+
allowNull: true,
|
|
9
|
+
field: 'academic_calendar_id',
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
const down = async (queryInterface, Sequelize) => {
|
|
14
|
+
const table = await queryInterface.describeTable('bank_account_details');
|
|
15
|
+
// Remove only if column exists
|
|
16
|
+
if (table.academic_calendar_id) {
|
|
17
|
+
await queryInterface.removeColumn('bank_account_details', 'academic_calendar_id');
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
module.exports = {
|
|
21
|
+
up,
|
|
22
|
+
down,
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const up = async (queryInterface, Sequelize) => {
|
|
3
|
+
const table = await queryInterface.describeTable('working_days');
|
|
4
|
+
// Check if column already exists
|
|
5
|
+
if (!table.academic_calendar_id) {
|
|
6
|
+
await queryInterface.addColumn('working_days', 'academic_calendar_id', {
|
|
7
|
+
type: Sequelize.UUID,
|
|
8
|
+
allowNull: true,
|
|
9
|
+
field: 'academic_calendar_id',
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
const down = async (queryInterface, Sequelize) => {
|
|
14
|
+
const table = await queryInterface.describeTable('working_days');
|
|
15
|
+
// Remove only if column exists
|
|
16
|
+
if (table.academic_calendar_id) {
|
|
17
|
+
await queryInterface.removeColumn('working_days', 'academic_calendar_id');
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
module.exports = {
|
|
21
|
+
up,
|
|
22
|
+
down,
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const up = async (queryInterface, Sequelize) => {
|
|
3
|
+
const table = await queryInterface.describeTable('working_shift_days');
|
|
4
|
+
// Check if column already exists
|
|
5
|
+
if (!table.academic_calendar_id) {
|
|
6
|
+
await queryInterface.addColumn('working_shift_days', 'academic_calendar_id', {
|
|
7
|
+
type: Sequelize.UUID,
|
|
8
|
+
allowNull: true,
|
|
9
|
+
field: 'academic_calendar_id',
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
const down = async (queryInterface, Sequelize) => {
|
|
14
|
+
const table = await queryInterface.describeTable('working_shift_days');
|
|
15
|
+
// Remove only if column exists
|
|
16
|
+
if (table.academic_calendar_id) {
|
|
17
|
+
await queryInterface.removeColumn('working_shift_days', 'academic_calendar_id');
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
module.exports = {
|
|
21
|
+
up,
|
|
22
|
+
down,
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const up = async (queryInterface, Sequelize) => {
|
|
3
|
+
const table = await queryInterface.describeTable('user_has_home_work');
|
|
4
|
+
// Check if column already exists
|
|
5
|
+
if (!table.academic_calendar_id) {
|
|
6
|
+
await queryInterface.addColumn('user_has_home_work', 'academic_calendar_id', {
|
|
7
|
+
type: Sequelize.UUID,
|
|
8
|
+
allowNull: true,
|
|
9
|
+
field: 'academic_calendar_id',
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
const down = async (queryInterface, Sequelize) => {
|
|
14
|
+
const table = await queryInterface.describeTable('user_has_home_work');
|
|
15
|
+
// Remove only if column exists
|
|
16
|
+
if (table.academic_calendar_id) {
|
|
17
|
+
await queryInterface.removeColumn('user_has_home_work', 'academic_calendar_id');
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
module.exports = {
|
|
21
|
+
up,
|
|
22
|
+
down,
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const up = async (queryInterface, Sequelize) => {
|
|
3
|
+
const table = await queryInterface.describeTable('batch_subject_book_assessments');
|
|
4
|
+
// Check if column already exists
|
|
5
|
+
if (!table.academic_calendar_id) {
|
|
6
|
+
await queryInterface.addColumn('batch_subject_book_assessments', 'academic_calendar_id', {
|
|
7
|
+
type: Sequelize.UUID,
|
|
8
|
+
allowNull: true,
|
|
9
|
+
field: 'academic_calendar_id',
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
const down = async (queryInterface, Sequelize) => {
|
|
14
|
+
const table = await queryInterface.describeTable('batch_subject_book_assessments');
|
|
15
|
+
// Remove only if column exists
|
|
16
|
+
if (table.academic_calendar_id) {
|
|
17
|
+
await queryInterface.removeColumn('batch_subject_book_assessments', 'academic_calendar_id');
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
module.exports = {
|
|
21
|
+
up,
|
|
22
|
+
down,
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const up = async (queryInterface, Sequelize) => {
|
|
3
|
+
const table = await queryInterface.describeTable('batch_subject_project_assessments');
|
|
4
|
+
// Check if column already exists
|
|
5
|
+
if (!table.academic_calendar_id) {
|
|
6
|
+
await queryInterface.addColumn('batch_subject_project_assessments', 'academic_calendar_id', {
|
|
7
|
+
type: Sequelize.UUID,
|
|
8
|
+
allowNull: true,
|
|
9
|
+
field: 'academic_calendar_id',
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
const down = async (queryInterface, Sequelize) => {
|
|
14
|
+
const table = await queryInterface.describeTable('batch_subject_project_assessments');
|
|
15
|
+
// Remove only if column exists
|
|
16
|
+
if (table.academic_calendar_id) {
|
|
17
|
+
await queryInterface.removeColumn('batch_subject_project_assessments', 'academic_calendar_id');
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
module.exports = {
|
|
21
|
+
up,
|
|
22
|
+
down,
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const up = async (queryInterface, Sequelize) => {
|
|
3
|
+
const table = await queryInterface.describeTable('project_assessment_options');
|
|
4
|
+
// Check if column already exists
|
|
5
|
+
if (!table.academic_calendar_id) {
|
|
6
|
+
await queryInterface.addColumn('project_assessment_options', 'academic_calendar_id', {
|
|
7
|
+
type: Sequelize.UUID,
|
|
8
|
+
allowNull: true,
|
|
9
|
+
field: 'academic_calendar_id',
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
const down = async (queryInterface, Sequelize) => {
|
|
14
|
+
const table = await queryInterface.describeTable('project_assessment_options');
|
|
15
|
+
// Remove only if column exists
|
|
16
|
+
if (table.academic_calendar_id) {
|
|
17
|
+
await queryInterface.removeColumn('project_assessment_options', 'academic_calendar_id');
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
module.exports = {
|
|
21
|
+
up,
|
|
22
|
+
down,
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const up = async (queryInterface, Sequelize) => {
|
|
3
|
+
const table = await queryInterface.describeTable('home_work');
|
|
4
|
+
// Check if column already exists
|
|
5
|
+
if (!table.academic_calendar_id) {
|
|
6
|
+
await queryInterface.addColumn('home_work', 'academic_calendar_id', {
|
|
7
|
+
type: Sequelize.UUID,
|
|
8
|
+
allowNull: true,
|
|
9
|
+
field: 'academic_calendar_id',
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
const down = async (queryInterface, Sequelize) => {
|
|
14
|
+
const table = await queryInterface.describeTable('home_work');
|
|
15
|
+
// Remove only if column exists
|
|
16
|
+
if (table.academic_calendar_id) {
|
|
17
|
+
await queryInterface.removeColumn('home_work', 'academic_calendar_id');
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
module.exports = {
|
|
21
|
+
up,
|
|
22
|
+
down,
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const up = async (queryInterface, Sequelize) => {
|
|
3
|
+
const table = await queryInterface.describeTable('user_has_roll_number');
|
|
4
|
+
// Check if column already exists
|
|
5
|
+
if (!table.academic_calendar_id) {
|
|
6
|
+
await queryInterface.addColumn('user_has_roll_number', 'academic_calendar_id', {
|
|
7
|
+
type: Sequelize.UUID,
|
|
8
|
+
allowNull: true,
|
|
9
|
+
field: 'academic_calendar_id',
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
const down = async (queryInterface, Sequelize) => {
|
|
14
|
+
const table = await queryInterface.describeTable('user_has_roll_number');
|
|
15
|
+
// Remove only if column exists
|
|
16
|
+
if (table.academic_calendar_id) {
|
|
17
|
+
await queryInterface.removeColumn('user_has_roll_number', 'academic_calendar_id');
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
module.exports = {
|
|
21
|
+
up,
|
|
22
|
+
down,
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const up = async (queryInterface, Sequelize) => {
|
|
3
|
+
const table = await queryInterface.describeTable('fee_history');
|
|
4
|
+
// Check if column already exists
|
|
5
|
+
if (!table.academic_calendar_id) {
|
|
6
|
+
await queryInterface.addColumn('fee_history', 'academic_calendar_id', {
|
|
7
|
+
type: Sequelize.UUID,
|
|
8
|
+
allowNull: true,
|
|
9
|
+
field: 'academic_calendar_id',
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
const down = async (queryInterface, Sequelize) => {
|
|
14
|
+
const table = await queryInterface.describeTable('fee_history');
|
|
15
|
+
// Remove only if column exists
|
|
16
|
+
if (table.academic_calendar_id) {
|
|
17
|
+
await queryInterface.removeColumn('fee_history', 'academic_calendar_id');
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
module.exports = {
|
|
21
|
+
up,
|
|
22
|
+
down,
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const up = async (queryInterface, Sequelize) => {
|
|
3
|
+
const table = await queryInterface.describeTable('fee_reminders');
|
|
4
|
+
// Check if column already exists
|
|
5
|
+
if (!table.academic_calendar_id) {
|
|
6
|
+
await queryInterface.addColumn('fee_reminders', 'academic_calendar_id', {
|
|
7
|
+
type: Sequelize.UUID,
|
|
8
|
+
allowNull: true,
|
|
9
|
+
field: 'academic_calendar_id',
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
const down = async (queryInterface, Sequelize) => {
|
|
14
|
+
const table = await queryInterface.describeTable('fee_reminders');
|
|
15
|
+
// Remove only if column exists
|
|
16
|
+
if (table.academic_calendar_id) {
|
|
17
|
+
await queryInterface.removeColumn('fee_reminders', 'academic_calendar_id');
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
module.exports = {
|
|
21
|
+
up,
|
|
22
|
+
down,
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const up = async (queryInterface, Sequelize) => {
|
|
3
|
+
const table = await queryInterface.describeTable('payment_terms');
|
|
4
|
+
// Check if column already exists
|
|
5
|
+
if (!table.academic_calendar_id) {
|
|
6
|
+
await queryInterface.addColumn('payment_terms', 'academic_calendar_id', {
|
|
7
|
+
type: Sequelize.UUID,
|
|
8
|
+
allowNull: true,
|
|
9
|
+
field: 'academic_calendar_id',
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
const down = async (queryInterface, Sequelize) => {
|
|
14
|
+
const table = await queryInterface.describeTable('payment_terms');
|
|
15
|
+
// Remove only if column exists
|
|
16
|
+
if (table.academic_calendar_id) {
|
|
17
|
+
await queryInterface.removeColumn('payment_terms', 'academic_calendar_id');
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
module.exports = {
|
|
21
|
+
up,
|
|
22
|
+
down,
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const up = async (queryInterface, Sequelize) => {
|
|
3
|
+
const table = await queryInterface.describeTable('subject_has_fee');
|
|
4
|
+
// Check if column already exists
|
|
5
|
+
if (!table.academic_calendar_id) {
|
|
6
|
+
await queryInterface.addColumn('subject_has_fee', 'academic_calendar_id', {
|
|
7
|
+
type: Sequelize.UUID,
|
|
8
|
+
allowNull: true,
|
|
9
|
+
field: 'academic_calendar_id',
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
const down = async (queryInterface, Sequelize) => {
|
|
14
|
+
const table = await queryInterface.describeTable('subject_has_fee');
|
|
15
|
+
// Remove only if column exists
|
|
16
|
+
if (table.academic_calendar_id) {
|
|
17
|
+
await queryInterface.removeColumn('subject_has_fee', 'academic_calendar_id');
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
module.exports = {
|
|
21
|
+
up,
|
|
22
|
+
down,
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const up = async (queryInterface, Sequelize) => {
|
|
3
|
+
const table = await queryInterface.describeTable('lecture_history');
|
|
4
|
+
// Check if column already exists
|
|
5
|
+
if (!table.academic_calendar_id) {
|
|
6
|
+
await queryInterface.addColumn('lecture_history', 'academic_calendar_id', {
|
|
7
|
+
type: Sequelize.UUID,
|
|
8
|
+
allowNull: true,
|
|
9
|
+
field: 'academic_calendar_id',
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
const down = async (queryInterface, Sequelize) => {
|
|
14
|
+
const table = await queryInterface.describeTable('lecture_history');
|
|
15
|
+
// Remove only if column exists
|
|
16
|
+
if (table.academic_calendar_id) {
|
|
17
|
+
await queryInterface.removeColumn('lecture_history', 'academic_calendar_id');
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
module.exports = {
|
|
21
|
+
up,
|
|
22
|
+
down,
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const up = async (queryInterface, Sequelize) => {
|
|
3
|
+
const table = await queryInterface.describeTable('greeting');
|
|
4
|
+
// Check if column already exists
|
|
5
|
+
if (!table.academic_calendar_id) {
|
|
6
|
+
await queryInterface.addColumn('greeting', 'academic_calendar_id', {
|
|
7
|
+
type: Sequelize.UUID,
|
|
8
|
+
allowNull: true,
|
|
9
|
+
field: 'academic_calendar_id',
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
const down = async (queryInterface, Sequelize) => {
|
|
14
|
+
const table = await queryInterface.describeTable('greeting');
|
|
15
|
+
// Remove only if column exists
|
|
16
|
+
if (table.academic_calendar_id) {
|
|
17
|
+
await queryInterface.removeColumn('greeting', 'academic_calendar_id');
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
module.exports = {
|
|
21
|
+
up,
|
|
22
|
+
down,
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const up = async (queryInterface, Sequelize) => {
|
|
3
|
+
const table = await queryInterface.describeTable('lectures');
|
|
4
|
+
// Check if column already exists
|
|
5
|
+
if (!table.academic_calendar_id) {
|
|
6
|
+
await queryInterface.addColumn('lectures', 'academic_calendar_id', {
|
|
7
|
+
type: Sequelize.UUID,
|
|
8
|
+
allowNull: true,
|
|
9
|
+
field: 'academic_calendar_id',
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
const down = async (queryInterface, Sequelize) => {
|
|
14
|
+
const table = await queryInterface.describeTable('lectures');
|
|
15
|
+
// Remove only if column exists
|
|
16
|
+
if (table.academic_calendar_id) {
|
|
17
|
+
await queryInterface.removeColumn('lectures', 'academic_calendar_id');
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
module.exports = {
|
|
21
|
+
up,
|
|
22
|
+
down,
|
|
23
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const up = async (queryInterface, Sequelize) => {
|
|
3
|
+
const table = await queryInterface.describeTable('master_leaves');
|
|
4
|
+
if (!table.academic_calendar_id) {
|
|
5
|
+
await queryInterface.addColumn('master_leaves', 'academic_calendar_id', {
|
|
6
|
+
type: Sequelize.UUID,
|
|
7
|
+
allowNull: true,
|
|
8
|
+
field: 'academic_calendar_id',
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
const down = async (queryInterface, Sequelize) => {
|
|
13
|
+
const table = await queryInterface.describeTable('master_leaves');
|
|
14
|
+
if (table.academic_calendar_id) {
|
|
15
|
+
await queryInterface.removeColumn('master_leaves', 'academic_calendar_id');
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
module.exports = {
|
|
19
|
+
up,
|
|
20
|
+
down,
|
|
21
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const up = async (queryInterface, Sequelize) => {
|
|
3
|
+
const table = await queryInterface.describeTable('offers');
|
|
4
|
+
if (!table.academic_calendar_id) {
|
|
5
|
+
await queryInterface.addColumn('offers', 'academic_calendar_id', {
|
|
6
|
+
type: Sequelize.UUID,
|
|
7
|
+
allowNull: true,
|
|
8
|
+
field: 'academic_calendar_id',
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
const down = async (queryInterface, Sequelize) => {
|
|
13
|
+
const table = await queryInterface.describeTable('offers');
|
|
14
|
+
if (table.academic_calendar_id) {
|
|
15
|
+
await queryInterface.removeColumn('offers', 'academic_calendar_id');
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
module.exports = {
|
|
19
|
+
up,
|
|
20
|
+
down,
|
|
21
|
+
};
|