mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 12:25:53 +02:00
add schema migration
This commit is contained in:
parent
ebab153ec6
commit
3f92b9fbae
2 changed files with 1 additions and 2 deletions
|
@ -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{
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
// +build tools
|
|
||||||
// Code generated by ent, DO NOT EDIT.
|
// Code generated by ent, DO NOT EDIT.
|
||||||
|
|
||||||
package ent
|
package ent
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue