Skip to content

Commit

Permalink
fixed eldritch length limit for mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
KCarretto committed Mar 7, 2023
1 parent 57f212d commit c97ebc1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tavern/ent/migrate/schema.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions tavern/ent/schema/tome.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (

"entgo.io/contrib/entgql"
"entgo.io/ent"
"entgo.io/ent/dialect"
"entgo.io/ent/schema"
"entgo.io/ent/schema/edge"
"entgo.io/ent/schema/field"
Expand Down Expand Up @@ -40,6 +41,9 @@ func (Tome) Fields() []ent.Field {
).
Comment("A SHA3 digest of the eldritch field"),
field.String("eldritch").
SchemaType(map[string]string{
dialect.MySQL: "LONGTEXT", // Override MySQL, improve length maximum
}).
Comment("Eldritch script that will be executed when the tome is run"),
}
}
Expand Down

0 comments on commit c97ebc1

Please sign in to comment.