mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-18 19:19:36 +02:00
19 lines
349 B
JavaScript
19 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,
|
|
};
|