Skip to content

Commit 6ca5469

Browse files
committed
Fix SCHEMA_SYNC_DATA_ONLY
1 parent 44bf54b commit 6ca5469

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# Version 3.0.6
1+
# Version 3.0.7
2+
3+
- **Fixed** SCHEMA_SYNC_DATA_ONLY being the opposite of what it should be.
4+
5+
## ~~Version 3.0.6~~
26

37
- **Added** Way to only import data and not the schema, for cases where you use something else to migrate your schema.
48
- Set `SCHEMA_SYNC_DATA_ONLY=true` in your environment file.

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const registerHook: HookConfig = async ({ action, init }, { env, services, datab
7777
}
7878

7979
if (!_exportManager) {
80-
_exportManager = await createExportManager(env.SCHEMA_SYNC_DATA_ONLY !== true);
80+
_exportManager = await createExportManager(!!env.SCHEMA_SYNC_DATA_ONLY);
8181
}
8282

8383
return _exportManager;

0 commit comments

Comments
 (0)