mirror of
https://github.com/ent/ent.git
synced 2026-05-01 23:20:53 +03:00
doc: explain how to use functional indexes in migrations (#4149)
This commit is contained in:
15
examples/functionalidx/atlas.hcl
Normal file
15
examples/functionalidx/atlas.hcl
Normal file
@@ -0,0 +1,15 @@
|
||||
data "composite_schema" "app" {
|
||||
# Load the ent schema first with all tables.
|
||||
schema "public" {
|
||||
url = "ent://ent/schema"
|
||||
}
|
||||
# Then, load the functional indexes.
|
||||
schema "public" {
|
||||
url = "file://schema.sql"
|
||||
}
|
||||
}
|
||||
|
||||
env "local" {
|
||||
src = data.composite_schema.app.url
|
||||
dev = "docker://postgres/15/dev?search_path=public"
|
||||
}
|
||||
Reference in New Issue
Block a user