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