mirror of
https://github.com/pawelmalak/flame.git
synced 2025-08-02 17:35:17 +02:00
Merge branch 'master' of https://github.com/pawelmalak/flame
This commit is contained in:
commit
3609fe211b
14 changed files with 74 additions and 19 deletions
19
db/migrations/05_app-description.js
Normal file
19
db/migrations/05_app-description.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
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,
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue