@projectinvicta/nails 3.0.4 → 3.0.5

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/lib/Nails.ts CHANGED
@@ -98,7 +98,8 @@ export default class Nails {
98
98
  async initializeModels() {
99
99
  await this.loadModels(this.config.service.MODELS_ROOT);
100
100
  await Promise.all(this.modelFinalizations.map((finalization) => finalization()));
101
- await this.sequelize.sync();
101
+ // TODO: Implement a migration strategy
102
+ await this.sequelize.sync({alter: {drop: false}});
102
103
  }
103
104
 
104
105
  async startServer() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@projectinvicta/nails",
3
- "version": "3.0.4",
3
+ "version": "3.0.5",
4
4
  "description": "A node.js webserver scaffold",
5
5
  "type": "module",
6
6
  "main": "index.ts",
@@ -10,5 +10,4 @@ export default class Dog extends Model {};
10
10
 
11
11
  export async function finalize() {
12
12
  Dog.belongsTo(Owner);
13
- await Dog.sync({alter: {drop: false}});
14
13
  }
@@ -9,5 +9,4 @@ export default class Owner extends Model {};
9
9
 
10
10
  export async function defer() {
11
11
  Owner.hasMany(Dog);
12
- await Dog.sync({alter: {drop: false}});
13
12
  }