Skip to content

Commit

Permalink
feat(db): Add message column to Commands table
Browse files Browse the repository at this point in the history
  • Loading branch information
skarab42 committed Jan 22, 2021
1 parent cf74d12 commit 4686d5a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/server/db/Models/Command.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ const Command = sequelize.define("Command", {
type: DataTypes.STRING,
allowNull: true,
},
message: {
type: DataTypes.STRING,
allowNull: true,
},
cooldown: {
type: DataTypes.INTEGER,
defaultValue: 60,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"use strict";

const { Sequelize } = require("sequelize");

module.exports = {
up: async ({ context }) => {
await context.addColumn("Commands", "message", Sequelize.STRING);
},
};

0 comments on commit 4686d5a

Please sign in to comment.