mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-24 05:39:35 +02:00
Added option to set custom description for apps
This commit is contained in:
parent
b08181e712
commit
531ede0adf
7 changed files with 53 additions and 9 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