mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-28 05:52:49 +03:00
16 lines
392 B
JavaScript
16 lines
392 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: setup-database.js`);
|
|
|
|
Promise.all([db.raw('CREATE EXTENSION IF NOT EXISTS "uuid-ossp"')]);
|
|
|
|
console.log(`FINISHED: setup-database.js`);
|
|
console.log(` CTRL +C to return to terminal.`);
|