mirror of
https://github.com/ent/ent.git
synced 2026-04-29 06:00:55 +03:00
doc: explain how to use functional indexes in migrations (#4149)
This commit is contained in:
2
examples/functionalidx/schema.sql
Normal file
2
examples/functionalidx/schema.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
-- Create a functional (unique) index on the lowercased name column.
|
||||
CREATE UNIQUE INDEX unique_name ON "users" ((lower("name")));
|
||||
Reference in New Issue
Block a user