fixed usage of migrations

Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
Philip Molares 2020-04-19 13:31:44 +02:00 committed by David Mehren
parent 94c3857d49
commit 6480c142a9
No known key found for this signature in database
GPG key ID: 6017AF117F9756CB
3 changed files with 31 additions and 10 deletions

View file

@ -1,5 +1,8 @@
'use strict'
const isSQLite = require('../utils').isSQLite
function isSQLite (sequelize) {
return sequelize.options.dialect === 'sqlite'
}
module.exports = {
up: function (queryInterface, Sequelize) {
return queryInterface.changeColumn('Notes', 'title', {