mirror of
https://github.com/wassname/HackFlowy.git
synced 2026-06-27 16:00:04 +08:00
7312c1b8bb
Created seeds to initialize database with dummy tasks. Introduce config module to handle configurations per environment. See https://github.com/lorenwest/node-config Updated README.md to reflect changes.
20 lines
559 B
JavaScript
20 lines
559 B
JavaScript
module.exports = {
|
|
up: function(migration, DataTypes, done) {
|
|
migration.createTable(
|
|
'Tasks',
|
|
{
|
|
id : {type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true},
|
|
content : {type: DataTypes.TEXT, allowNull: false},
|
|
parent : DataTypes.INTEGER,
|
|
isCompleted: DataTypes.BOOLEAN,
|
|
createdAt : DataTypes.DATE,
|
|
updatedAt : DataTypes.DATE
|
|
});
|
|
done()
|
|
},
|
|
down: function(migration, DataTypes, done) {
|
|
migration.dropTable('Tasks');
|
|
done()
|
|
}
|
|
}
|