Resource definitions (CUE) modifications (MySQL)
A series of small modifications on resource defintions to simplify MySQL handling. Text fields included into indexes have length and existing lengths are lowered to fit into ~3k char limitation. Most of the changed attributes are can function within the new limitations anyway.
This commit is contained in:
@@ -164,8 +164,8 @@ resources: { [key=_]: {"handle": key, "component": "system", "platform": "cortez
|
||||
|
||||
model: {
|
||||
attributes: {
|
||||
kind: {
|
||||
dal: {}
|
||||
kind: {
|
||||
dal: { length: 64 }
|
||||
}
|
||||
resource_id: {
|
||||
goType: "uint64",
|
||||
@@ -176,7 +176,7 @@ resources: { [key=_]: {"handle": key, "component": "system", "platform": "cortez
|
||||
owned_by: schema.AttributeUserRef
|
||||
name: {
|
||||
ignoreCase: true
|
||||
dal: {}
|
||||
dal: { length: 512 }
|
||||
}
|
||||
active: {
|
||||
goType: "bool"
|
||||
|
||||
@@ -10,6 +10,8 @@ session: {
|
||||
}
|
||||
|
||||
model: {
|
||||
// length for the lang is now a bit shorter
|
||||
// Reason for that is supported index length in MySQL
|
||||
ident: "automation_sessions"
|
||||
attributes: {
|
||||
id: schema.IdField
|
||||
@@ -28,12 +30,12 @@ session: {
|
||||
event_type: {
|
||||
sortable: true,
|
||||
goType: "string"
|
||||
dal: {}
|
||||
dal: { length: 32 }
|
||||
}
|
||||
resource_type: {
|
||||
sortable: true,
|
||||
goType: "string"
|
||||
dal: {}
|
||||
dal: { length: 64 }
|
||||
}
|
||||
input: {
|
||||
goType: "*expr.Vars"
|
||||
|
||||
@@ -34,7 +34,7 @@ trigger: {
|
||||
resource_type: {
|
||||
sortable: true,
|
||||
goType: "string"
|
||||
dal: {}
|
||||
dal: { length: 64 }
|
||||
}
|
||||
event_type: {
|
||||
sortable: true,
|
||||
|
||||
@@ -11,14 +11,16 @@ resource_translation: {
|
||||
}
|
||||
|
||||
model: {
|
||||
// lengths for the lang, resource fields are now a bit shorter
|
||||
// Reason for that is supported index length in MySQL
|
||||
attributes: {
|
||||
id: schema.IdField
|
||||
lang: {
|
||||
goType: "types.Lang"
|
||||
dal: { type: "Text", length: 128 }
|
||||
dal: { type: "Text", length: 32 }
|
||||
}
|
||||
resource: {
|
||||
dal: { type: "Text", length: 512 }
|
||||
dal: { type: "Text", length: 256 }
|
||||
}
|
||||
k: {
|
||||
dal: { type: "Text", length: 256 }
|
||||
|
||||
@@ -6,6 +6,8 @@ import (
|
||||
|
||||
template: {
|
||||
model: {
|
||||
// length for the lang is now a bit shorter
|
||||
// Reason for that is supported index length in MySQL
|
||||
attributes: {
|
||||
id: schema.IdField
|
||||
owner_id: {
|
||||
@@ -17,7 +19,7 @@ template: {
|
||||
language: {
|
||||
sortable: true,
|
||||
goType: "string"
|
||||
dal: {}
|
||||
dal: { length: 32 }
|
||||
}
|
||||
type: {
|
||||
sortable: true,
|
||||
|
||||
Reference in New Issue
Block a user