Commit Graph

22 Commits

Author SHA1 Message Date
Cyril Brulebois
9ff209d1f3 doc: remove executable flag for md, mdx, png, js, and .gitignore files (#3015)
Spotted by lintian running against a Debian package: the executable flag
is strange for all those files in the doc directory.
2022-10-16 16:47:56 +03:00
Rotem Tamir
50d4c62057 doc/md: add instructions for migration dir linting in ci page (#2865) 2022-08-18 14:41:00 +03:00
Ariel Mashraki
6637cbf68e examples/migration: add doc about migration linting (#2856) 2022-08-15 09:45:36 +03:00
Ariel Mashraki
31bc1a98fb doc/website: update version-migration with global ids (#2798) 2022-07-25 14:59:09 +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
Ariel Mashraki
dab95be855 doc/md: example and test for migration apply hooks (#2514) 2022-05-02 14:25:22 +03:00
Ariel Mashraki
04e0dc936b entc/integration/migrate: add example for renaming columns (#2496) 2022-04-24 22:36:33 +03:00
MasseElch
5ff2256e10 doc/md: prettier URL for versioned migrations doc (#2360) 2022-02-24 08:18:24 +01:00
MasseElch
59c6702e12 doc/md: versioned migrations (#2345)
* 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>
2022-02-21 17:56:02 +01:00
Ariel Mashraki
60e03285d0 dialect/sql/schema: hello ariga.io/atlas (#2279) 2022-01-20 17:20:50 +02: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
ab651255ee doc/migrate: add info and examples for hooks (#1156) 2021-01-08 22:45:27 +02:00
Ariel Mashraki
faa54f5e79 Merge branch 'master' of https://github.com/day-dreams/ent into day-dreams-master 2020-10-21 12:31:11 +03:00
kakaxizhang
63421aa9ad dialect/sql/schema: optimize code and add website documents (#748) 2020-10-12 16:08:02 +08:00
Ariel Mashraki
2b78d1d9af doc: add more info to getting-started summary (#787) 2020-09-21 15:59:23 +03:00
Ariel Mashraki
77122ce70e doc: minor spelling changes (#711) 2020-08-29 21:17:55 +03:00
Ariel Mashraki
fd0a7f9f02 all: facebookincubator/ent => facebook/ent (#660)
ent repository is going to be migrated to facebook organization
2020-08-18 11:05:08 +03:00
Ariel Mashraki
55fefbfbec doc: update Open api examples
Reviewed By: alexsn

Differential Revision: D17710222

fbshipit-source-id: 189b2c0407c035e62da5926a71f89453d6acaa12
2019-10-02 10:11:09 -07:00
Ariel Mashraki
5fb8c081f3 ent/doc: add documentation and exmples to offline migrate
Summary: https://pxl.cl/Knr4

Reviewed By: alexsn

Differential Revision: D17253380

fbshipit-source-id: 517985f1b912c68e379da3412863b5d14927aedc
2019-09-09 01:20:45 -07:00
Ariel Mashraki
95d878d3c6 ent/doc: fix grammar and typos and doc
Summary: {F206501895}

Reviewed By: alexsn

Differential Revision: D17182079

fbshipit-source-id: 9311fc8b3f2608b9cd5ae5cd0a805b0cf73c4029
2019-09-04 07:35:46 -07:00
Ariel Mashraki
931d0c0565 ent/doc: migration, dialects and websire changes
Reviewed By: alexsn

Differential Revision: D17155041

fbshipit-source-id: 378cd47cb8b6111b3daba2860ae2fa02b7f2b856
2019-09-02 05:58:18 -07:00
Ariel Mashraki
930cf29367 ent/website: add docs structure
Reviewed By: alexsn

Differential Revision: D16782780

fbshipit-source-id: 084a50bc935597a5be8a5c04b2f9347e683ea45a
2019-08-13 05:31:22 -07:00