-
Notifications
You must be signed in to change notification settings - Fork 75
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 #1523 from OriginTrail/prerelease/testnet
OriginTrail Testnet Release v5.0.2
- Loading branch information
Showing
41 changed files
with
971 additions
and
123 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
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
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
14 changes: 14 additions & 0 deletions
14
migrations/202104201448123-update-offers-add-replication-timestamp.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,14 @@ | ||
module.exports = { | ||
up: async (queryInterface, Sequelize) => { | ||
await queryInterface.addColumn( | ||
'offers', | ||
'replication_start_timestamp', | ||
{ | ||
type: Sequelize.STRING, | ||
}, | ||
); | ||
}, | ||
down: async (queryInterface) => { | ||
await queryInterface.removeColumn('offers', 'replication_start_timestamp'); | ||
}, | ||
}; |
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,26 @@ | ||
module.exports = { | ||
up: async (queryInterface, Sequelize) => { | ||
await queryInterface.createTable('pruning_history', { | ||
id: { | ||
allowNull: false, | ||
primaryKey: true, | ||
type: Sequelize.STRING, | ||
}, | ||
data_set_id: { | ||
allowNull: false, | ||
type: Sequelize.STRING, | ||
}, | ||
imported_timestamp: { | ||
allowNull: false, | ||
type: Sequelize.STRING, | ||
}, | ||
pruned_timestamp: { | ||
allowNull: false, | ||
type: Sequelize.STRING, | ||
}, | ||
}); | ||
}, | ||
down: async (queryInterface) => { | ||
await queryInterface.dropTable('pruning_history'); | ||
}, | ||
}; |
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,21 @@ | ||
const uuidv4 = require('uuid/v4'); | ||
|
||
module.exports = (sequelize, DataTypes) => { | ||
const pruning_history = sequelize.define('pruning_history', { | ||
id: { | ||
type: DataTypes.STRING, | ||
defaultValue: () => uuidv4(), | ||
primaryKey: true, | ||
}, | ||
data_set_id: DataTypes.STRING, | ||
imported_timestamp: DataTypes.STRING, | ||
pruned_timestamp: DataTypes.STRING, | ||
}, { | ||
freezeTableName: true, | ||
tableName: 'pruning_history', | ||
}); | ||
pruning_history.associate = (models) => { | ||
// associations can be defined here | ||
}; | ||
return pruning_history; | ||
}; |
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.