doc: explain how to use functional indexes in migrations (#4149)

This commit is contained in:
Ariel Mashraki
2024-07-20 11:48:52 +03:00
committed by GitHub
parent 807b4a758b
commit 10de04eeaa
28 changed files with 3522 additions and 0 deletions

View 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"
}