mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
ent/schema: allow setting collation for string fields
Reviewed By: a8m Differential Revision: D17090481 fbshipit-source-id: a08768c9bac4318a91bc6a067c85d6eb022c3024
This commit is contained in:
committed by
Facebook Github Bot
parent
419753b33b
commit
4c1f28d58f
@@ -124,6 +124,7 @@ func ExampleFile() {
|
||||
Create().
|
||||
SetSize(1).
|
||||
SetName("string").
|
||||
SetText("string").
|
||||
SetUser("string").
|
||||
SetGroup("string").
|
||||
SaveX(ctx)
|
||||
@@ -149,6 +150,7 @@ func ExampleFileType() {
|
||||
Create().
|
||||
SetSize(1).
|
||||
SetName("string").
|
||||
SetText("string").
|
||||
SetUser("string").
|
||||
SetGroup("string").
|
||||
SaveX(ctx)
|
||||
@@ -187,6 +189,7 @@ func ExampleGroup() {
|
||||
Create().
|
||||
SetSize(1).
|
||||
SetName("string").
|
||||
SetText("string").
|
||||
SetUser("string").
|
||||
SetGroup("string").
|
||||
SaveX(ctx)
|
||||
@@ -355,6 +358,7 @@ func ExampleUser() {
|
||||
Create().
|
||||
SetSize(1).
|
||||
SetName("string").
|
||||
SetText("string").
|
||||
SetUser("string").
|
||||
SetGroup("string").
|
||||
SaveX(ctx)
|
||||
|
||||
Reference in New Issue
Block a user