* type safe feature activation in example
* Update doc/md/versioned-migrations.md
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
* dialect/sql/schema: file based type store
This PR adds support for a file based type storage when using versioned migrations. The file called `.ent_types` is written to the migration directory alongside the migration files and will be kept in sync for every migration file generation run.
In order to not break existing code, where the type storage might differ for different deployment, global unique ID mut be enabled by using a new option. This will also be raised as an error to the user when attempting to use versioned migrations and global unique ID.
Documentation will be added to this PR once feedback on the code is gathered.
* apply CR
* fix tests
* change format of types file to exclude it from atlas.sum file
* docs and drift test
* apply CR
* doc/md: clarify when feature flag is needed for versioned migrations
* doc/website/blog: introduction
* doc/md: more blog post
* Apply suggestions from code review
Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com>
* doc/website/blog: move explanation about versioned migration purpose up
* doc/website/blog: apply CR
* doc/website/blog: reword desription of versioned migrations
* doc/website/blog: typos
* doc/website/blog: last minute changes pre publish
Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com>
* dialect/sql/schema: add method to create a named versioned migration file
* doc/md: documentation for named versioned migrations
* entc/gen/template/dialect/sql/feature: add NamedDiff method to create named versioned migration files
* all: go generate
* doc/md: apply CR