Skip to content

Commit d85d642

Browse files
Merge pull request #289 from HathorNetwork/dev
Release v0.19.0-alpha
2 parents bcdadc8 + 52f4f21 commit d85d642

8 files changed

+20124
-67
lines changed

.github/workflows/pr-validation.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
timeout-minutes: 20
1313
strategy:
1414
matrix:
15-
node-version: [14.x]
15+
node-version: [16.x]
1616
services:
1717
mysql:
1818
# We are using this image because the official one didn't
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
'use strict';
2+
3+
module.exports = {
4+
up: async (queryInterface, Sequelize) => {
5+
await queryInterface.addColumn('wallet_balance', 'total_received', {
6+
type: Sequelize.BIGINT.UNSIGNED,
7+
allowNull: false,
8+
defaultValue: 0,
9+
});
10+
},
11+
12+
down: async (queryInterface, Sequelize) => {
13+
await queryInterface.removeColumn('wallet_balance', 'total_received');
14+
}
15+
};

db/models/addressbalance.js

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ module.exports = (sequelize, DataTypes) => {
3737
total_received: {
3838
type: DataTypes.BIGINT.UNSIGNED,
3939
allowNull: false,
40+
defaultValue: 0,
4041
},
4142
unlocked_balance: {
4243
type: DataTypes.BIGINT.UNSIGNED,

db/models/walletbalance.js

+5
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ module.exports = (sequelize, DataTypes) => {
2424
allowNull: false,
2525
primaryKey: true,
2626
},
27+
total_received: {
28+
type: DataTypes.BIGINT.UNSIGNED,
29+
allowNull: false,
30+
defaultValue: 0,
31+
},
2732
unlocked_balance: {
2833
type: DataTypes.BIGINT.UNSIGNED,
2934
allowNull: false,

0 commit comments

Comments
 (0)