mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-19 03:29:37 +02:00
20 lines
349 B
JavaScript
20 lines
349 B
JavaScript
|
const { DataTypes } = require('sequelize');
|
||
|
const { STRING } = DataTypes;
|
||
|
|
||
|
const up = async (query) => {
|
||
|
await query.addColumn('apps', 'description', {
|
||
|
type: STRING,
|
||
|
allowNull: false,
|
||
|
defaultValue: '',
|
||
|
});
|
||
|
};
|
||
|
|
||
|
const down = async (query) => {
|
||
|
await query.removeColumn('apps', 'description');
|
||
|
};
|
||
|
|
||
|
module.exports = {
|
||
|
up,
|
||
|
down,
|
||
|
};
|