13 lines
352 B
JavaScript
13 lines
352 B
JavaScript
|
const Migrations = artifacts.require("Migrations");
|
||
|
|
||
|
const tdr = require('truffle-deploy-registry');
|
||
|
|
||
|
module.exports = async function (deployer, network) {
|
||
|
await deployer.deploy(Migrations);
|
||
|
let migrationsInstance = await Migrations.deployed();
|
||
|
|
||
|
if (!tdr.isDryRunNetworkName(network)) {
|
||
|
await tdr.appendInstance(migrationsInstance);
|
||
|
}
|
||
|
};
|