Jannik Clausen
ab0540611e
entc/gen: support external ValueScanner for id field ( #4487 )
2026-02-18 07:41:35 +01:00
iazpiazu
d056659140
dialect/sql/sqlgraph: set schema when clearing foreign key edges ( #4429 )
...
* set schema in clearfkedges func
* add test case for clearing bidirectional o2o foreign key
2026-02-14 08:11:01 +02:00
Joey Yu
2eb36418a0
entc/gen: add support for collation on edge schema ( #4480 )
...
* entc/gen: add support for collation on edge schema
Signed-off-by: Joey Yu <joey@jyu.dev >
* improve test case
Signed-off-by: Joey Yu <joey@jyu.dev >
---------
Signed-off-by: Joey Yu <joey@jyu.dev >
2026-01-08 23:11:07 +02:00
Ariel Mashraki
397ebe9f39
dialect/sql/schema: allow running migration concurrently without copying the tables ( #4475 )
2025-12-11 22:32:32 +02:00
Arthur Lutz
49be309024
doc: update list of tested pg versions ( #4463 )
2025-11-20 16:24:08 +02:00
Ariel Mashraki
ff2b4a6347
doc/md: add the new CollectedFor annotation to graphql fields mapping ( #4462 )
...
See: https://github.com/ent/contrib/pull/623
2025-11-19 21:51:55 +02:00
Samuel Dufel
cf1482ecb7
entc/gen: add support for custom collations on ID fields ( #4453 )
...
* Add support for custom collations on ID fields
In cases with a string PK / importing existing schema to use ent, it's helpful to be
able to control the collation.
* Update entc/gen/type.go
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
---------
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
2025-11-10 19:12:08 +02:00
Paul O’Shannessy
a777c08cdd
Clean up old & irrelevant references to Facebook ( #4452 )
2025-11-06 06:49:41 +02:00
Ariel Mashraki
4d347cae97
doc: mention how to use schemaconfig with schema annotation ( #4444 )
2025-10-07 23:39:35 +03:00
Jens Holdgaard Pedersen
01063ef639
Update cmd/internal/printer/printer.go ( #4415 )
...
Co-authored-by: Jannik Clausen <12862103+masseelch@users.noreply.github.com >
Signed-off-by: jensholdgaard <jens@holdgaard.org >
feat(printer): update github.com/olekukonko/tablewriter to v1.0.8
# Conflicts:
# go.sum
2025-10-03 20:03:42 +03:00
Ariel Mashraki
175d96f7ec
dialect/sql/schema: pass unit to atlas constructor ( #4420 )
2025-07-31 11:10:01 +03:00
Tantatorn Suksangwarn
9442826ba6
doc: update FieldEqualFold comment for clarity on case-folding equality ( #4414 )
v0.14.5
2025-07-21 12:33:06 +03:00
Nathan Trujillo
0940edf5d9
website/blog: add in base.pg.hcl notes ( #4413 )
2025-07-11 09:08:07 +03:00
Jannik Clausen
51e185459a
dialect/sql/schema: add option to control symbol hashing logic for schema dump ( #4411 )
2025-07-10 09:32:25 +02:00
Henry Le
ace82484b8
dialect/sql/sqlgraph: report check constraint violation with IsCheckConstraintError ( #4404 )
...
* feat(dialect): Support check constraint violation
* chore: Add unit tests for IsCheckConstraintError
2025-06-20 15:11:59 +07:00
liangminhua
86238d83fc
schema/field: add rune length validators for string fields ( #4398 )
...
Signed-off-by: liangminhua <ben302010@live.cn >
2025-06-20 13:42:13 +07:00
Jannik Clausen
09fd57eb3e
entc/gen: atlas:pos directive to views ( #4400 )
2025-06-04 08:42:49 +02:00
eiixy
21ecfa0872
entc: update groupReceiver and selectReceiver ( #4395 )
...
* update GroupReceiver and SelectReceiver
* update examples
* update entc/integration generated code
* Update entc/gen/type.go
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
---------
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
2025-05-23 15:20:27 +07:00
Jannik Clausen
eec2a183c0
dialect/sql/schema: resource positions: remove unnecessary function a… ( #4391 )
...
* dialect/sql/schema: resource positions: remove unnecessary function argument
* fix linter
2025-05-21 15:19:30 +02:00
Jannik Clausen
c12502dba5
dialect: support atlas external schema resource positions ( #4390 )
2025-05-20 14:12:53 +02:00
Jannik Clausen
c382e911c3
entc/gen: schema config for edge schema ( #4386 )
2025-05-14 09:43:13 +02:00
Giau. Tran Minh
b1786895ce
dialect/sql: remove all DDL builders that no longer used ( #4369 )
2025-04-08 19:44:03 +07:00
Ariel Mashraki
1b6159ac6e
examples: use AutoApprove in 'atlas schema apply' examples ( #4366 )
2025-04-01 21:10:31 +03:00
leaked memory
5db3e3fb83
doc: fix missing quote ( #4365 )
2025-03-29 07:58:48 +03:00
Ariel Mashraki
95a3e5f970
dialect/sql: reset session variables when query is done ( #4364 )
2025-03-28 06:21:31 +03:00
Jannik Clausen
9db6f4df43
all: update atlas ( #4362 )
2025-03-25 15:12:42 +01:00
Jannik Clausen
c877aa65c4
dialect/sql/schema: revert min length logic for state reader ( #4359 )
...
While this change is correct and eventually should land, currently it is creating too many noise in existing projects. Therefore, this change is reverted until a better solution is found.
2025-03-21 19:32:06 +01:00
Giau. Tran Minh
6b1d0a2e84
entc/gen: fixed conflict with package name table/column ( #4357 )
...
* entc/gen: fixed conflict with package name table/column
* examples: codegen
* entc/integration: codegen
2025-03-19 16:00:07 +07:00
Giau. Tran Minh
ce61476d6d
entc/gen/template: remove receiver conflict handling logic ( #4356 )
...
* examples: ensure tests is stable
* entc/gen/template: remove receiver conflict handling logic
* examples: codegen
* entc/integration: codegen
2025-03-19 15:35:03 +07:00
Giau. Tran Minh
153dfa1782
entc/gen: change receivers to static one ( #4355 )
...
* entc/gen: change receivers to static one
* entc/integration: codegen
* examples: codegen
* chore: fixed spacing
2025-03-19 15:10:47 +07:00
Giau. Tran Minh
088bfd75ad
entc/gen/template: allow nested template access Receiver ( #4354 )
v0.14.4
2025-03-17 17:16:05 +07:00
Jannik Clausen
6109670fa2
entc/integration: add integration testing for PG16 and PG17 ( #4353 )
2025-03-17 10:04:41 +01:00
Michael Caulley
6813cdd337
fix: set the dialect for the generated query ( #4349 )
...
different quote characters are used by different dialects
2025-03-12 14:04:42 +01:00
Jannik Clausen
80f9cbf5bf
dialect/sql/schema: qualify if schema is given ( #4346 )
2025-03-10 14:24:01 +01:00
Jannik Clausen
7f5f143bd2
doc/md: docs for new globalid feature ( #4344 )
v0.14.3
2025-02-25 12:42:25 +01:00
Jannik Clausen
fed373ab2f
dialect/sql/schema: support dialect specific view definitions ( #4340 )
2025-02-24 13:43:19 +01:00
Jannik Clausen
addae7fc6f
cmd/internal/base: add build tags flag to schema dump command ( #4339 )
2025-02-24 12:46:24 +01:00
MengYX
428604afd7
fix: ent schema panics if any field contains the DefaultExprs annotation ( #4338 )
...
fixes https://github.com/ent/ent/issues/4337
2025-02-24 08:19:12 +01:00
Jannik Clausen
8b85c83e00
dialect/sql/schema: add multi schema and view support for schema dump ( #4335 )
2025-02-21 15:16:17 +01:00
Ronen Lubin
727a677465
doc/website: fix some cmd in rag-with-ent blog ( #4331 )
v0.14.2
2025-02-13 22:02:58 +07:00
Rotem Tamir
550806cd6c
doc/website/blog: rags with ent ( #4330 )
...
* doc/website/blog: rags with ent
* more examples
* image
2025-02-13 14:53:18 +02:00
Giau. Tran Minh
2b1ad7e4b0
chore: bump x/tools to latest ( #4329 )
...
* chore: bump `x/tools` to latest
* chore: fixed lint on go1.24
2025-02-13 16:09:44 +07:00
Ariel Mashraki
c5db03c30e
dialect/sql/schema: support setting schema name for migration ( #4327 )
2025-02-12 18:18:03 +02:00
Jannik Clausen
da9f897368
cmd/entfix: rename entfix module to be aligned with other ent commands ( #4328 )
2025-02-12 17:00:23 +01:00
Jannik Clausen
e84d59c821
doc/website: fix go get entfix path ( #4326 )
2025-02-12 16:09:36 +01:00
Ronen Lubin
bfd5471a48
doc: add index.html for entfix cmd ( #4325 )
...
* doc: add index.html for entfix cmd
* fix typo
2025-02-12 15:26:54 +01:00
Jannik Clausen
598ae18ac1
entc/gen: fix globalid annotation encoding ( #4314 )
2025-01-27 19:40:05 +01:00
Jannik Clausen
7d72a2864d
entc/gen: resolve merge conflicts on file load ( #4313 )
...
If there is no conflict in the schema, the existing logic will not attempt to resolve a conflict. Therefore, if there is a conflict on file load, there now also is an attempt to fix the conflict.
2025-01-27 09:38:20 +01:00
Jannik Clausen
0edce5f3d6
entc/gen: resolve merge conflicts on global id file ( #4312 )
2025-01-23 13:59:47 +01:00
Jannik Clausen
ec5bfadcab
entc/gen: compute default target on LoadGraph ( #4311 )
2025-01-22 12:04:28 +01:00