* 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: versioned migrations
* doc/md: move to own page
* doc/md: add example for migrations from graph
* doc/md: add image
* Apply suggestions from code review
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
* doc/md: format examples
* doc/md: mention versioned migrations in offline migration
* doc/md: add instructions how to run a main.go file
* doc/md: add instructions how to move from auto migrate to versioned migration
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>