whitelabel-db 1.1.57 → 1.1.58

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.
@@ -36,7 +36,7 @@ const up = (queryInterface) => __awaiter(void 0, void 0, void 0, function* () {
36
36
  console.log('Table user1 already exists, skipping.');
37
37
  }
38
38
  else {
39
- throw error; // Re-throw other errors
39
+ console.error('Error while creating table user1:', error.message);
40
40
  }
41
41
  }
42
42
  });
@@ -51,7 +51,7 @@ const down = (queryInterface) => __awaiter(void 0, void 0, void 0, function* ()
51
51
  console.log('Table user1 does not exist, skipping.');
52
52
  }
53
53
  else {
54
- throw error; // Re-throw other errors
54
+ console.error('Error while creating table user1:', error.message);
55
55
  }
56
56
  }
57
57
  });
@@ -88,7 +88,6 @@ const up = (queryInterface) => __awaiter(void 0, void 0, void 0, function* () {
88
88
  }
89
89
  catch (error) {
90
90
  console.error('Error while adding columns or indexes:', error.message);
91
- throw error; // Re-throw to ensure migration failure is logged and handled.
92
91
  }
93
92
  });
94
93
  exports.up = up;
@@ -108,7 +107,6 @@ const down = (queryInterface) => __awaiter(void 0, void 0, void 0, function* ()
108
107
  }
109
108
  catch (error) {
110
109
  console.error('Error while removing columns or indexes:', error.message);
111
- throw error; // Re-throw to ensure migration failure is logged and handled.
112
110
  }
113
111
  });
114
112
  exports.down = down;
@@ -28,7 +28,6 @@ const up = (queryInterface) => __awaiter(void 0, void 0, void 0, function* () {
28
28
  }
29
29
  catch (error) {
30
30
  console.error('Error while adding columns or indexes:', error.message);
31
- throw error; // Re-throw to ensure migration failure is logged and handled.
32
31
  }
33
32
  });
34
33
  exports.up = up;
@@ -42,7 +41,6 @@ const down = (queryInterface) => __awaiter(void 0, void 0, void 0, function* ()
42
41
  }
43
42
  catch (error) {
44
43
  console.error('Error while removing columns or indexes:', error.message);
45
- throw error; // Re-throw to ensure migration failure is logged and handled.
46
44
  }
47
45
  });
48
46
  exports.down = down;
@@ -33,7 +33,6 @@ const up = (queryInterface) => __awaiter(void 0, void 0, void 0, function* () {
33
33
  }
34
34
  catch (error) {
35
35
  console.error('Error while adding columns:', error.message);
36
- throw error; // Re-throw to ensure migration failure is logged and handled.
37
36
  }
38
37
  });
39
38
  exports.up = up;
@@ -48,7 +47,6 @@ const down = (queryInterface) => __awaiter(void 0, void 0, void 0, function* ()
48
47
  }
49
48
  catch (error) {
50
49
  console.error('Error while removing columns:', error.message);
51
- throw error; // Re-throw to ensure migration failure is logged and handled.
52
50
  }
53
51
  });
54
52
  exports.down = down;
@@ -61,7 +61,6 @@ const up = (queryInterface) => __awaiter(void 0, void 0, void 0, function* () {
61
61
  }
62
62
  catch (error) {
63
63
  console.error('Error in migration:', error.message);
64
- throw error;
65
64
  }
66
65
  });
67
66
  exports.up = up;
@@ -97,7 +96,6 @@ const down = (queryInterface) => __awaiter(void 0, void 0, void 0, function* ()
97
96
  }
98
97
  catch (error) {
99
98
  console.error('Error in rollback:', error.message);
100
- throw error;
101
99
  }
102
100
  });
103
101
  exports.down = down;
@@ -28,7 +28,6 @@ const up = (queryInterface) => __awaiter(void 0, void 0, void 0, function* () {
28
28
  }
29
29
  catch (error) {
30
30
  console.error('Error while adding columns:', error.message);
31
- throw error; // Re-throw to ensure migration failure is logged and handled.
32
31
  }
33
32
  });
34
33
  exports.up = up;
@@ -43,7 +42,6 @@ const down = (queryInterface) => __awaiter(void 0, void 0, void 0, function* ()
43
42
  }
44
43
  catch (error) {
45
44
  console.error('Error while removing columns:', error.message);
46
- throw error; // Re-throw to ensure migration failure is logged and handled.
47
45
  }
48
46
  });
49
47
  exports.down = down;
@@ -34,7 +34,6 @@ const up = (queryInterface) => __awaiter(void 0, void 0, void 0, function* () {
34
34
  }
35
35
  catch (error) {
36
36
  console.error('Error while adding columns:', error.message);
37
- throw error; // Re-throw to ensure migration failure is logged and handled.
38
37
  }
39
38
  });
40
39
  exports.up = up;
@@ -49,7 +48,6 @@ const down = (queryInterface) => __awaiter(void 0, void 0, void 0, function* ()
49
48
  }
50
49
  catch (error) {
51
50
  console.error('Error while removing columns:', error.message);
52
- throw error; // Re-throw to ensure migration failure is logged and handled.
53
51
  }
54
52
  });
55
53
  exports.down = down;
@@ -23,7 +23,6 @@ const up = (queryInterface) => __awaiter(void 0, void 0, void 0, function* () {
23
23
  }
24
24
  catch (error) {
25
25
  console.error('Error while adding columns:', error.message);
26
- throw error; // Re-throw to ensure migration failure is logged and handled.
27
26
  }
28
27
  });
29
28
  exports.up = up;
@@ -35,7 +34,6 @@ const down = (queryInterface) => __awaiter(void 0, void 0, void 0, function* ()
35
34
  }
36
35
  catch (error) {
37
36
  console.error('Error while removing columns:', error.message);
38
- throw error; // Re-throw to ensure migration failure is logged and handled.
39
37
  }
40
38
  });
41
39
  exports.down = down;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whitelabel-db",
3
- "version": "1.1.57",
3
+ "version": "1.1.58",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",