-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #295 from HathorNetwork/dev
Release v1.21.0-alpha
- Loading branch information
Showing
23 changed files
with
1,843 additions
and
13 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
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
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
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,20 @@ | ||
codecov: | ||
branch: | ||
|
||
coverage: | ||
status: | ||
project: | ||
default: | ||
# minimum coverage ratio that the commit must meet to be considered a success | ||
target: 88% | ||
if_ci_failed: error | ||
only_pulls: true | ||
patch: | ||
default: | ||
# minimum coverage ratio that the commit must meet to be considered a success | ||
target: 88% | ||
if_ci_failed: error | ||
only_pulls: true | ||
|
||
github_checks: | ||
annotations: true |
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,49 @@ | ||
'use strict'; | ||
|
||
/** @type {import('sequelize-cli').Migration} */ | ||
module.exports = { | ||
async up(queryInterface, Sequelize) { | ||
await queryInterface.createTable('push_devices', { | ||
device_id: { | ||
type: Sequelize.STRING(256), | ||
allowNull: false, | ||
primaryKey: true, | ||
}, | ||
push_provider: { | ||
type: Sequelize.ENUM(['ios', 'android']), | ||
allowNull: false, | ||
}, | ||
wallet_id: { | ||
type: Sequelize.STRING(64), | ||
allowNull: false, | ||
references: { | ||
model: 'wallet', | ||
key: 'id', | ||
}, | ||
}, | ||
enable_push: { | ||
type: Sequelize.BOOLEAN, | ||
allowNull: false, | ||
defaultValue: false, | ||
}, | ||
enable_show_amounts: { | ||
type: Sequelize.BOOLEAN, | ||
allowNull: false, | ||
defaultValue: false, | ||
}, | ||
enable_only_new_tx: { | ||
type: Sequelize.BOOLEAN, | ||
allowNull: false, | ||
defaultValue: false, | ||
}, | ||
updated_at: { | ||
type: 'TIMESTAMP', | ||
allowNull: false, | ||
defaultValue: Sequelize.literal('CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP'), | ||
}, | ||
}); | ||
}, | ||
async down(queryInterface) { | ||
await queryInterface.dropTable('push_devices'); | ||
}, | ||
}; |
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,65 @@ | ||
'use strict'; | ||
const { Model } = require('sequelize'); | ||
|
||
module.exports = (sequelize, DataTypes) => { | ||
class PushDevices extends Model { | ||
/** | ||
* Helper method for defining associations. | ||
* This method is not a part of Sequelize lifecycle. | ||
* The `models/index` file will call this method automatically. | ||
*/ | ||
static associate(models) { | ||
// define association here | ||
} | ||
} | ||
PushDevices.init( | ||
{ | ||
device_id: { | ||
type: DataTypes.STRING(256), | ||
allowNull: false, | ||
primaryKey: true, | ||
}, | ||
push_provider: { | ||
type: DataTypes.ENUM(['ios', 'android']), | ||
allowNull: false, | ||
}, | ||
wallet_id: { | ||
type: DataTypes.STRING(64), | ||
allowNull: false, | ||
references: { | ||
model: 'wallet', | ||
key: 'id', | ||
}, | ||
}, | ||
enable_push: { | ||
type: DataTypes.BOOLEAN, | ||
allowNull: false, | ||
defaultValue: false, | ||
}, | ||
enable_show_amounts: { | ||
type: DataTypes.BOOLEAN, | ||
allowNull: false, | ||
defaultValue: false, | ||
}, | ||
enable_only_new_tx: { | ||
type: DataTypes.BOOLEAN, | ||
allowNull: false, | ||
defaultValue: false, | ||
}, | ||
updated_at: { | ||
type: 'TIMESTAMP', | ||
allowNull: false, | ||
defaultValue: DataTypes.literal( | ||
'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP' | ||
), | ||
}, | ||
}, | ||
{ | ||
sequelize, | ||
modelName: 'PushDevices', | ||
tableName: 'push_devices', | ||
timestamps: false, | ||
}, | ||
); | ||
return PushDevices; | ||
}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
Oops, something went wrong.