mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-27 00:19:55 +03:00
Fix knex usage
This commit is contained in:
parent
374186d0b2
commit
af8ed41b33
|
@ -50,7 +50,7 @@
|
||||||
"electron": "^9.2.0",
|
"electron": "^9.2.0",
|
||||||
"express": "^4.17.1",
|
"express": "^4.17.1",
|
||||||
"getport": "^0.1.0",
|
"getport": "^0.1.0",
|
||||||
"graphql": "^15.3.0",
|
"graphql": "^14.7.0",
|
||||||
"knex": "^0.19.5",
|
"knex": "^0.19.5",
|
||||||
"lodash": "^4.17.19",
|
"lodash": "^4.17.19",
|
||||||
"minimist": "^1.2.5",
|
"minimist": "^1.2.5",
|
||||||
|
|
|
@ -15,9 +15,9 @@ export default function connector(options: SCServer.SCServerOptions) {
|
||||||
|
|
||||||
/* eslint-disable no-console */
|
/* eslint-disable no-console */
|
||||||
knex.migrate
|
knex.migrate
|
||||||
.latest()
|
.latest({ loadExtensions: ['.js'] })
|
||||||
.then(function () {
|
.then(function () {
|
||||||
return knex.seed.run();
|
return knex.seed.run({ loadExtensions: ['.js'] });
|
||||||
})
|
})
|
||||||
.then(function () {
|
.then(function () {
|
||||||
console.log(' \x1b[0;32m[Done]\x1b[0m Migrations are finished\n');
|
console.log(' \x1b[0;32m[Done]\x1b[0m Migrations are finished\n');
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import knexModule from 'knex';
|
import type knexModule from 'knex';
|
||||||
|
|
||||||
export function up(knex: knexModule) {
|
export function up(knex: knexModule) {
|
||||||
return Promise.all([
|
return Promise.all([
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import knexModule from 'knex';
|
import type knexModule from 'knex';
|
||||||
|
|
||||||
export function seed(knex: knexModule) {
|
export function seed(knex: knexModule) {
|
||||||
return Promise.all([knex('remotedev_apps').del()]).then(function () {
|
return Promise.all([knex('remotedev_apps').del()]).then(function () {
|
||||||
|
|
|
@ -9700,6 +9700,13 @@ graphql-upload@^8.0.2:
|
||||||
http-errors "^1.7.3"
|
http-errors "^1.7.3"
|
||||||
object-path "^0.11.4"
|
object-path "^0.11.4"
|
||||||
|
|
||||||
|
graphql@^14.7.0:
|
||||||
|
version "14.7.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/graphql/-/graphql-14.7.0.tgz#7fa79a80a69be4a31c27dda824dc04dac2035a72"
|
||||||
|
integrity sha512-l0xWZpoPKpppFzMfvVyFmp9vLN7w/ZZJPefUicMCepfJeQ8sMcztloGYY9DfjVPo6tIUDzU5Hw3MUbIjj9AVVA==
|
||||||
|
dependencies:
|
||||||
|
iterall "^1.2.2"
|
||||||
|
|
||||||
graphql@^15.3.0:
|
graphql@^15.3.0:
|
||||||
version "15.3.0"
|
version "15.3.0"
|
||||||
resolved "https://registry.yarnpkg.com/graphql/-/graphql-15.3.0.tgz#3ad2b0caab0d110e3be4a5a9b2aa281e362b5278"
|
resolved "https://registry.yarnpkg.com/graphql/-/graphql-15.3.0.tgz#3ad2b0caab0d110e3be4a5a9b2aa281e362b5278"
|
||||||
|
@ -11072,7 +11079,7 @@ istanbul-reports@^3.0.2:
|
||||||
html-escaper "^2.0.0"
|
html-escaper "^2.0.0"
|
||||||
istanbul-lib-report "^3.0.0"
|
istanbul-lib-report "^3.0.0"
|
||||||
|
|
||||||
iterall@^1.1.3, iterall@^1.2.1:
|
iterall@^1.1.3, iterall@^1.2.1, iterall@^1.2.2:
|
||||||
version "1.3.0"
|
version "1.3.0"
|
||||||
resolved "https://registry.yarnpkg.com/iterall/-/iterall-1.3.0.tgz#afcb08492e2915cbd8a0884eb93a8c94d0d72fea"
|
resolved "https://registry.yarnpkg.com/iterall/-/iterall-1.3.0.tgz#afcb08492e2915cbd8a0884eb93a8c94d0d72fea"
|
||||||
integrity sha512-QZ9qOMdF+QLHxy1QIpUHUU1D5pS2CG2P69LF6L6CPjPYA/XMOmKV3PZpawHoAjHNyB0swdVTRxdYT4tbBbxqwg==
|
integrity sha512-QZ9qOMdF+QLHxy1QIpUHUU1D5pS2CG2P69LF6L6CPjPYA/XMOmKV3PZpawHoAjHNyB0swdVTRxdYT4tbBbxqwg==
|
||||||
|
|
Loading…
Reference in New Issue
Block a user