We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be010ad commit dfb1754Copy full SHA for dfb1754
src/checkStructure.js
@@ -1,13 +1,6 @@
1
-import {
2
- requireEnv,
3
- getInsertsFromMigrations,
4
- getInsertsFromStructure,
5
-} from './utils'
6
-
7
-async function checkStructure(options) {
8
- const { structurePath, migrationsPath } = options
9
- requireEnv('development', options.env)
+import { getInsertsFromMigrations, getInsertsFromStructure } from './utils'
10
+async function checkStructure({ structurePath, migrationsPath }) {
11
const migrationsInFolder = await getInsertsFromMigrations(migrationsPath)
12
const migrationsInStructure = await getInsertsFromStructure(structurePath)
13
0 commit comments