Ariel Mashraki
397ebe9f39
dialect/sql/schema: allow running migration concurrently without copying the tables ( #4475 )
2025-12-11 22:32:32 +02:00
Ariel Mashraki
c5db03c30e
dialect/sql/schema: support setting schema name for migration ( #4327 )
2025-02-12 18:18:03 +02:00
Jannik Clausen
0edce5f3d6
entc/gen: resolve merge conflicts on global id file ( #4312 )
2025-01-23 13:59:47 +01:00
Jannik Clausen
01e21a2c30
dialect/sql/schema: remove deprecated legacy migration engine ( #4294 )
2025-01-14 12:57:51 +01:00
Jannik Clausen
adfd86c303
dialect/entsql: allow to define auto increment start value ( #4292 )
...
Preparation to rewrite the universal id feature to rely on type ranges defined statically in the schema instead of dynamically in a database.
2025-01-09 20:03:39 +01:00
Ariel Mashraki
f251400818
dialect/sql/schema: support passing schema diff options ( #3516 )
2023-05-03 11:28:10 +03:00
Ariel Mashraki
f16451eab8
dialect/sql/schema: allow planning with indentation ( #3363 )
2023-03-04 10:06:53 +02:00
Ariel Mashraki
bd6f26aa7c
dialect/sql/schema: allow configuring Atlas to return ErrNoPlan ( #3322 )
2023-02-16 21:56:51 +02:00
Ariel Mashraki
4c87e262a6
dialect/sql/schema: use the Atlas as state reader ( #3314 )
2023-02-14 10:20:34 +02:00
Pedro Henrique
397afc3d85
dialect/sql/schema: avoid setting the primary key when no primary key is present ( #3114 )
...
* dialect/sql: avoid setting the primary key when no primary key is present
* fix tests
* adds comment
2022-11-28 06:48:00 +02:00
Jannik Clausen
139725ee00
dialect/sql/schema: no longer allocate a PK range for a join table ( #2950 )
...
* dialect/sql/schema: no longer allocate a PK range for a join table
* test that no breaking change is introduced
2022-09-23 13:40:36 +03:00
Jannik Clausen
b6c185a660
dialect/sql/schema: make use of new atlas migration directories and r… ( #2873 )
...
* dialect/sql/schema: make use of new atlas migration directories and remove examples for custom formatters
* typo
2022-08-19 14:42:54 +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
Ariel Mashraki
8416fb502d
dialect/sql/schema: setup tables before running migrate diff ( #2703 )
...
Keep the same API as schema.Create
2022-06-30 09:55:40 +03: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
MasseElch
12b6659c72
dialect/sql/schema: respect sumfile when present and do not operate on checksum mismatch ( #2522 )
2022-05-05 10:43:20 +02: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
Zeev Manilovich
b1abbd3d65
dialect/sql/schema: without foreign keys option for atlas ( #2404 )
...
* dialect/sql: without foreign key option for atlas
* handle fks in modifytables
* add tests
* tests
* Update dialect/sql/schema/atlas.go
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
* ct and tests
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
2022-03-16 17:27:23 +02:00
MasseElch
db1617bb29
dialect/sql/schema: upgrade atlas and disable sum file creation ( #2400 )
...
* dialect/sql/schema: upgrade atlas and disable sum file creation
* dialect/sql/schema: linter
2022-03-15 17:40:56 +01:00
Ariel Mashraki
dd4792f5b3
go: rename module from github.com/facebook/ent => entgo.io/ent ( #1226 )
2021-02-02 23:03:04 +02:00
Ariel Mashraki
cfb8f5c4a9
dialect/sql/schema: minor style changes ( #1152 )
2021-01-07 20:37:47 +02:00
Ruben de Vries
a9c39bb952
dialect/sql/schema: add migration hooks ( #1150 )
2021-01-07 20:23:01 +02:00