mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
28 lines
No EOL
652 B
JavaScript
28 lines
No EOL
652 B
JavaScript
module.exports = {
|
|
up: (queryInterface, Sequelize) => {
|
|
return queryInterface.createTable('announcements', {
|
|
id: {
|
|
allowNull: false,
|
|
autoIncrement: true,
|
|
primaryKey: true,
|
|
type: Sequelize.INTEGER
|
|
},
|
|
title: Sequelize.STRING,
|
|
announcement: {
|
|
type: Sequelize.STRING
|
|
},
|
|
visible: Sequelize.BOOLEAN,
|
|
createdAt: {
|
|
allowNull: false,
|
|
type: Sequelize.DATE
|
|
},
|
|
updatedAt: {
|
|
allowNull: false,
|
|
type: Sequelize.DATE
|
|
}
|
|
})
|
|
},
|
|
down: (queryInterface, Sequelize) => {
|
|
return queryInterface.dropTable('announcements')
|
|
}
|
|
} |