mirror of
https://github.com/pawelmalak/flame.git
synced 2025-01-01 23:12:31 +03:00
20 lines
354 B
JavaScript
20 lines
354 B
JavaScript
const { DataTypes } = require('sequelize');
|
|
const { INTEGER } = DataTypes;
|
|
|
|
const up = async (query) => {
|
|
await query.addColumn('bookmarks', 'orderId', {
|
|
type: INTEGER,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
});
|
|
};
|
|
|
|
const down = async (query) => {
|
|
await query.removeColumn('bookmarks', 'orderId');
|
|
};
|
|
|
|
module.exports = {
|
|
up,
|
|
down,
|
|
};
|