mirror of
https://github.com/filecoin-project/slate.git
synced 2024-12-27 11:03:23 +03:00
20 lines
453 B
JavaScript
20 lines
453 B
JavaScript
import configs from "~/knexfile";
|
|
import knex from "knex";
|
|
|
|
const envConfig = configs["development"];
|
|
|
|
console.log(`SETUP: database`, envConfig);
|
|
|
|
const db = knex(envConfig);
|
|
|
|
console.log(`RUNNING: adjust.js`);
|
|
|
|
const dropSlatenameUnique = db.schema.table("slates", function(table) {
|
|
table.dropUnique("slatename");
|
|
});
|
|
|
|
Promise.all([dropSlatenameUnique]);
|
|
|
|
console.log(`FINISHED: adjust.js`);
|
|
console.log(` CTRL +C to return to terminal.`);
|