@churchsoln/dbms 1.0.51 → 1.0.53

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,17 @@
1
+ "use strict";
2
+
3
+ module.exports = {
4
+ up: async (queryInterface, DataTypes) => {
5
+ await queryInterface.changeColumn("User", "password", {
6
+ type: DataTypes.STRING,
7
+ allowNull: true,
8
+ });
9
+ },
10
+
11
+ down: async (queryInterface, DataTypes) => {
12
+ await queryInterface.changeColumn("User", "password", {
13
+ type: DataTypes.STRING,
14
+ allowNull: false,
15
+ });
16
+ },
17
+ };
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ module.exports = {
4
+ up: async (queryInterface, DataTypes) => {
5
+ await queryInterface.changeColumn("Member", "otp", {
6
+ type: DataTypes.STRING,
7
+ allowNull: true,
8
+ });
9
+ },
10
+
11
+ down: async (queryInterface, DataTypes) => {
12
+ await queryInterface.changeColumn("Member", "otp", {
13
+ type: DataTypes.INTEGER,
14
+ allowNull: true,
15
+ });
16
+ },
17
+ };
@@ -93,7 +93,7 @@ module.exports = (sequelize, DataTypes) => {
93
93
 
94
94
  // Additional
95
95
  notes: { type: DataTypes.TEXT },
96
- otp: { type: DataTypes.INTEGER },
96
+ otp: { type: DataTypes.STRING },
97
97
 
98
98
  // Flags
99
99
  enabledProfile: {
@@ -22,7 +22,6 @@ module.exports = (sequelize, DataTypes) => {
22
22
  },
23
23
  password: {
24
24
  type: DataTypes.STRING,
25
- allowNull: false,
26
25
  set(password) {
27
26
  if (password) {
28
27
  const encrypted = utils.genHash(password);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@churchsoln/dbms",
3
- "version": "1.0.51",
3
+ "version": "1.0.53",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "prestart": "node db-setup.js",