Commit Graph

17 Commits

Author SHA1 Message Date
Jannik Clausen
0f33b0bcb8 doc/md: update docs to fix #2731 (#2732) 2022-07-08 20:26:46 +02:00
Jannik Clausen
52a109128d doc/md: type safe feature activation versioned migration (#2727)
* type safe feature activation in example

* Update doc/md/versioned-migrations.md

Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
2022-07-07 15:21:44 +03:00
Jannik Clausen
412f5f75ca add docs about auto-increment counter "bug" in MySQL versions < 8.0 and how to handle it (#2722) 2022-07-06 10:34:39 +02:00
Jannik Clausen
5b67bdab4f dialect/sql/schema: atlas engine is now default (#2698)
* atlas engine is default, enabled diff by replay

* Apply suggestions from code review

* docs

* apply CR
2022-07-05 12:29:15 +02:00
Jannik Clausen
7017cbc898 dialect/sql/schema: file based type store (#2644)
* 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
2022-06-15 16:10:15 +02:00
Jannik Clausen
fc03c8d283 doc/md: add note about versioned migration tool support requiring latest master (#2537) 2022-05-10 08:52:09 +02:00
Thomas Meitz
4e1affecbc doc/md - added usage note for golang-migrate (#2482)
* docs - added note for golang-migrate

* remove .vscode directory

* changed as proposed
2022-04-20 08:39:52 +02:00
MasseElch
f7a7da675f doc/md: document atlas sum file usage (#2471)
* doc/md: document atlas sum file usage

* doc/md: apply CR

* doc/md: elaborate and images
2022-04-19 08:58:07 +02:00
Amit Shani
72e454e5fc doc/md: versioned migration typo fix (#2481) 2022-04-18 16:11:13 +03:00
Amit Shani
f1ea8def89 doc/md: fix typo (#2480) 2022-04-18 15:52:14 +03:00
MasseElch
89dc83887c doc/md: document usage of atlas supported migration tools (#2467)
* doc/md: document usage of atlas supported migration tools

* dialect/sql/schema: fix tests
2022-04-13 12:47:00 +02:00
Motonori Iwata
e1e47e61f3 Write a document for custom formatter of migrate (#2415)
* Write a document for custom formatter of migrate

closes https://github.com/ent/ent/issues/2408

* Update doc/md/versioned-migrations.md

Co-authored-by: MasseElch <12862103+masseelch@users.noreply.github.com>

* Update doc/md/versioned-migrations.md

Co-authored-by: MasseElch <12862103+masseelch@users.noreply.github.com>

* more helpful code snippet

* Update doc/md/versioned-migrations.md

Co-authored-by: MasseElch <12862103+masseelch@users.noreply.github.com>

* Update doc/md/versioned-migrations.md

Co-authored-by: MasseElch <12862103+masseelch@users.noreply.github.com>

* Update doc/md/versioned-migrations.md

Co-authored-by: MasseElch <12862103+masseelch@users.noreply.github.com>

Co-authored-by: MasseElch <12862103+masseelch@users.noreply.github.com>
2022-03-25 16:13:22 +01:00
Ariel Mashraki
3f0b0856fd entc/integration: additional schema changes for migration (#2403) 2022-03-15 18:32:38 +02:00
MasseElch
41db628df3 doc/website/blog: versioned migrations (#2387)
* 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>
2022-03-14 14:47:13 +01:00
MasseElch
2853afc1dc dialect/sql/schema: add method to create a named versioned migration … (#2385)
* 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
2022-03-10 16:40:57 +01:00
MasseElch
b17aa2245f doc/md: prettier URL for versioned migrations doc part 2 (#2361) 2022-02-24 08:30:46 +01:00
MasseElch
5ff2256e10 doc/md: prettier URL for versioned migrations doc (#2360) 2022-02-24 08:18:24 +01:00