зеркало из https://github.com/mozilla/CSOL-site.git
22 строки
549 B
JavaScript
22 строки
549 B
JavaScript
var path = require('path');
|
|
var runMigrations = require(path.join(__dirname, '../db')).runMigrations;
|
|
|
|
module.exports = {
|
|
up: function(target, DataTypes, callback) {
|
|
runMigrations(target, [
|
|
{
|
|
type: 'addColumn',
|
|
args: ['signuptokens', 'lastReminder', {
|
|
type: DataTypes.DATE,
|
|
allowNull: true
|
|
}]
|
|
}
|
|
], callback);
|
|
},
|
|
down: function(target, DataTypes, callback) {
|
|
runMigrations(target, [
|
|
{type: 'removeColumn', args: ['signuptokens', 'lastReminder']}
|
|
], callback);
|
|
}
|
|
}
|