@kipicore/dbcore 1.1.266 → 1.1.268

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.
@@ -0,0 +1,2 @@
1
+ export function up(queryInterface: any, Sequelize: any): Promise<void>;
2
+ export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -0,0 +1,19 @@
1
+ 'use strict';
2
+ const up = async (queryInterface, Sequelize) => {
3
+ await queryInterface.changeColumn('maintenance', 'app_type', {
4
+ type: Sequelize.STRING,
5
+ allowNull: true,
6
+ field: 'app_type',
7
+ });
8
+ };
9
+ const down = async (queryInterface, Sequelize) => {
10
+ await queryInterface.changeColumn('maintenance', 'app_type', {
11
+ type: Sequelize.UUID,
12
+ allowNull: true,
13
+ field: 'app_type',
14
+ });
15
+ };
16
+ module.exports = {
17
+ up,
18
+ down,
19
+ };
@@ -1,7 +1,7 @@
1
1
  import { Model } from 'sequelize';
2
2
  import { IMaintenanceModelAttributes } from '../../interfaces/maintenanceInterface';
3
- import { TIWorkOffDaysModelCreationAttributes } from '../../types/workOffDaysType';
4
- declare class MaintenanceModel extends Model<IMaintenanceModelAttributes, TIWorkOffDaysModelCreationAttributes> {
3
+ import { TIMaintenanceModelCreationAttributes } from '../../types';
4
+ declare class MaintenanceModel extends Model<IMaintenanceModelAttributes, TIMaintenanceModelCreationAttributes> {
5
5
  id: string;
6
6
  moduleName?: string;
7
7
  instituteId?: string;
@@ -114,7 +114,7 @@ MaintenanceModel.init({
114
114
  type: sequelize_1.DataTypes.BOOLEAN,
115
115
  field: 'is_remove',
116
116
  allowNull: true,
117
- }
117
+ },
118
118
  }, {
119
119
  modelName: 'MaintenanceModel',
120
120
  tableName: 'maintenance',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.266",
3
+ "version": "1.1.268",
4
4
  "description": "Reusable DB core package with Postgres, MongoDB, models, services, interfaces, and types",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",