-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(db): Add message column to Commands table
- Loading branch information
skarab42
committed
Jan 22, 2021
1 parent
cf74d12
commit 4686d5a
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
app/server/db/migrations/20210122133319-command-add-message-field.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
}, | ||
}; |