Skip to content

Releases: bcc-code/directus-schema-sync

schema-sync v3.0.9

15 Jun 18:52

Choose a tag to compare

What's Changed

  • Do not update hash/timestamp if hash didn't actually change.

Full Changelog: v3.0.8...v3.0.9

Version 3.0.8

09 Mar 19:55

Choose a tag to compare

What's Changed

  • Just some performance updates to load and save files in parallel.

Full Changelog: 3.0.7...v3.0.8

Version 3.0.7

30 Jan 08:22

Choose a tag to compare

What's Changed

  • add SCHEMA_SYNC_DATA_ONLY flag by @adelinn in #60
  • add --data option to import command to only import data and not schema

Version 3.0.6

29 Jan 15:25

Choose a tag to compare

What's Changed

  • add SCHEMA_SYNC_DATA_ONLY flag by @adelinn in #60
  • add --data option to import command to only import data and not schema

Full Changelog: 3.0.5...3.0.6

Version 3.0.2

16 Sep 12:56

Choose a tag to compare

What's Changed

  • Automatically export schema on first install by @rvanoord in #50

Full Changelog: v3.0.1...v3.0.2

Version 3.0.1

10 Aug 14:12

Choose a tag to compare

Just fixed directus_config.js duplicate permissions configuration.

For migration guide please refer to Version 3

Full Changelog: 3.0.0...v3.0.1

Version 3.0.0

10 Aug 09:55

Choose a tag to compare

Updated for the Directus 11.

Migration guide:

  1. First update to Directus 11, including running npx directus database migrate:latest
  2. Then install schema-sync npm install directus-extension-schema-sync@latest -S
  3. Then copy the new configuration for policies and access, as well as the updated config for permissions and roles from node_modules/directus-extension-schema-sync/install/schema-sync/directus_config.js
  4. Paste the updated configuration into your ./schema-sync/directus_config.js file
  5. Finally run npx directus schema-sync export to generate a new snapshot with the latest schema 🎉

Full Changelog: v2.1.2...3.0.0

Version 2.1.2

07 Jun 12:22

Choose a tag to compare

  • Remove old schema files when generating new schema files.
    • This is to remove files of deleted collections.

Version 2.1.1

30 May 15:02

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.1.0...v2.1.1

Version 2.1.0

29 May 18:42

Choose a tag to compare

Added groupBy parameter to collection options

(optional) array of fields to group the exported data into multiple files, eg. ['collection'] (per collection)

This is useful when you have a large amount of data in a collection (such as directus_permissions) and want to split it up into multiple files.

{
  directus_permissions: {
    watch: ['permissions'],
    groupBy: ['collection', 'role'],
    …
  },
}

Full Changelog: v2.0.0...v2.1.0