lms-sync 1.0.14 → 1.0.15

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.
@@ -14,9 +14,9 @@ async function promptYearSem() {
14
14
  { title: 'Campus', value: 'Campus' },
15
15
  { title: 'College', value: 'College' },
16
16
  { title: 'AcademicDepartments', value: 'AcademicDepartments' },
17
+ { title: 'Instructor', value: 'Instructor' },
17
18
  { title: 'Course', value: 'Course' },
18
19
  { title: 'Room', value: 'Room' },
19
- { title: 'Instructor', value: 'Instructor' },
20
20
  { title: 'AcademicYear', value: 'AcademicYear' },
21
21
  { title: 'Subject', value: 'Subject' },
22
22
  { title: 'Schedule', value: 'Schedule' },
package/app.js CHANGED
@@ -1,5 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
+ const {version} = require('./package.json')
4
+ const {schema} = require('./models/index')
3
5
  const sequelizeStart = require('./apiConnections/sequelizeConnection');
4
6
  const apiConnects = require('./apiConnections/apiConnects')
5
7
  const picks = require('./apiConnections/semesterPick')
@@ -8,15 +10,15 @@ const tables = require('./apiConnections/tablePick')
8
10
  async function start(){
9
11
  try {
10
12
 
13
+ console.log('MSC LMS Migration App')
14
+ console.log('Package Version:', version);
11
15
  const apis = await apiConnects.ApiConnections()
12
16
  if(apis){
13
- console.log('Connected to Apis.');
14
- console.log(`Api link:`, apis.api.baseURL);
17
+ console.log(`Connected to Api's link: ${apis.api.baseURL}`,);
15
18
  }
16
19
  const startSequel = await sequelizeStart.getSequelConnection();
17
20
  if (startSequel) {
18
- console.log('Connected to Sequelize.');
19
- console.log(`Sequelize host:`, startSequel.config.host);
21
+ console.log(`Connected to Sequelize: ${startSequel.config.host}, schema: ${schema}`);
20
22
  }
21
23
  const picked = await picks.Picked()
22
24
  if (picked){
@@ -113,6 +113,22 @@ module.exports = (sequelize, DataTypes,schema) => {
113
113
  type: DataTypes.DATE,
114
114
  allowNull: true,
115
115
  },
116
+ // migratedAt:{
117
+ // type: DataTypes.DATE,
118
+ // allowNull: true,
119
+ // },
120
+ // migratedTable:{
121
+ // type: DataTypes.STRING,
122
+ // allowNull: true,
123
+ // },
124
+ // referenceId:{
125
+ // type: DataTypes.INTEGER,
126
+ // allowNull: true,
127
+ // },
128
+ // isMigrated:{
129
+ // type: DataTypes.BOOLEAN,
130
+ // allowNull: true,
131
+ // },
116
132
  },
117
133
  {
118
134
  sequelize,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lms-sync",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "description": "Migration App for MSC LMS",
5
5
  "main": "index.js",
6
6
  "scripts": {