hedgedoc/old_src/lib/migrations/20150515125813-create-temp.js

19 lines
418 B
JavaScript
Raw Normal View History

2017-03-27 07:23:00 -04:00
'use strict'
module.exports = {
up: async function (queryInterface, Sequelize) {
2017-03-27 07:23:00 -04:00
return queryInterface.createTable('Temp', {
id: {
type: Sequelize.STRING,
primaryKey: true
},
date: Sequelize.TEXT,
createdAt: Sequelize.DATE,
updatedAt: Sequelize.DATE
})
},
down: async function (queryInterface, Sequelize) {
2017-03-27 07:23:00 -04:00
return queryInterface.dropTable('Temp')
}
}