add schema migration

This commit is contained in:
sabban 2025-05-06 11:07:06 +02:00
parent ebab153ec6
commit 3f92b9fbae
2 changed files with 1 additions and 2 deletions

View file

@ -148,7 +148,7 @@ var (
{Name: "created_at", Type: field.TypeTime}, {Name: "created_at", Type: field.TypeTime},
{Name: "updated_at", Type: field.TypeTime}, {Name: "updated_at", Type: field.TypeTime},
{Name: "name", Type: field.TypeString, Unique: true}, {Name: "name", Type: field.TypeString, Unique: true},
{Name: "value", Type: field.TypeString}, {Name: "value", Type: field.TypeString, SchemaType: map[string]string{"mysql": "longtext", "postgres": "text"}},
} }
// ConfigItemsTable holds the schema information for the "config_items" table. // ConfigItemsTable holds the schema information for the "config_items" table.
ConfigItemsTable = &schema.Table{ ConfigItemsTable = &schema.Table{

View file

@ -1,4 +1,3 @@
// +build tools
// Code generated by ent, DO NOT EDIT. // Code generated by ent, DO NOT EDIT.
package ent package ent