diff options
| author | Adam Soltys <[email protected]> | 2018-02-17 21:08:37 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2018-02-17 21:08:37 -0800 |
| commit | ba202a956cc73e9eddda78318220b54b66666200 (patch) | |
| tree | 56774d8b364bfcf6c5992ac52ea949a0d93c98ac /migrations | |
| parent | 82ea50b1bfef490009afb48c4fcb7986c764886d (diff) | |
| download | coinos-server-ba202a956cc73e9eddda78318220b54b66666200.tar.gz coinos-server-ba202a956cc73e9eddda78318220b54b66666200.zip | |
add channel balance column
Diffstat (limited to 'migrations')
| -rw-r--r-- | migrations/20180217065619-addChannelBalance.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/migrations/20180217065619-addChannelBalance.js b/migrations/20180217065619-addChannelBalance.js new file mode 100644 index 00000000..fc909f53 --- /dev/null +++ b/migrations/20180217065619-addChannelBalance.js @@ -0,0 +1,11 @@ +'use strict'; + +module.exports = { + up: (queryInterface, Sequelize) => { + return queryInterface.addColumn('users', 'channelbalance', { type: Sequelize.INTEGER }) + }, + + down: (queryInterface, Sequelize) => { + return queryInterface.removeColumn('users', 'channelbalance') + } +}; |
