abelosorio / sequelize-views-support

Adds VIEWS support to Sequelize
https://www.npmjs.com/package/sequelize-views-support
MIT License
28 stars 11 forks source link

upgrade to pg v8 and sequelize v6 #17

Open popmanhe opened 3 years ago

popmanhe commented 3 years ago

"dependencies": { "pg": "^8.5.1", "sequelize": "^6.5.0" },

If I upgrade to the latest version of pg and sequelize, queryInterface becomes camelCase.

 static drop(options) {
    const method = this.options.treatAsView ? 'dropView' : 'dropTable';

    return this.queryInterface[method](
      this.getTableName(options), options
    );
  }
static syncView(options) {
    return this.queryInterface.createView(
      this.getTableName(options),
      this.getViewDefinition(),
      options
    );
  }