fix: remove legacy knowledge card tables and compatibility code
This commit is contained in:
@@ -79,15 +79,13 @@ type MultiTableTables struct {
|
||||
Scenarios uint64 `yaml:"scenarios" env:"APP_MULTITABLE_TABLES_SCENARIOS"`
|
||||
ScenarioFields uint64 `yaml:"scenario_fields" env:"APP_MULTITABLE_TABLES_SCENARIO_FIELDS"`
|
||||
ScenarioRules uint64 `yaml:"scenario_rules" env:"APP_MULTITABLE_TABLES_SCENARIO_RULES"`
|
||||
SOPVersions uint64 `yaml:"sop_versions" env:"APP_MULTITABLE_TABLES_SOP_VERSIONS"`
|
||||
SOPs uint64 `yaml:"sops" env:"APP_MULTITABLE_TABLES_SOPS"`
|
||||
SOPNodes uint64 `yaml:"sop_nodes" env:"APP_MULTITABLE_TABLES_SOP_NODES"`
|
||||
SOPEdges uint64 `yaml:"sop_edges" env:"APP_MULTITABLE_TABLES_SOP_EDGES"`
|
||||
KnowledgeItems uint64 `yaml:"knowledge_items" env:"APP_MULTITABLE_TABLES_KNOWLEDGE_ITEMS"`
|
||||
KnowledgeRelations uint64 `yaml:"knowledge_relations" env:"APP_MULTITABLE_TABLES_KNOWLEDGE_RELATIONS"`
|
||||
// KnowledgeVersions is retained only for replaying historical projection events.
|
||||
KnowledgeVersions uint64 `yaml:"knowledge_versions" env:"APP_MULTITABLE_TABLES_KNOWLEDGE_VERSIONS"`
|
||||
Runs uint64 `yaml:"runs" env:"APP_MULTITABLE_TABLES_RUNS"`
|
||||
Feedback uint64 `yaml:"feedback" env:"APP_MULTITABLE_TABLES_FEEDBACK"`
|
||||
Runs uint64 `yaml:"runs" env:"APP_MULTITABLE_TABLES_RUNS"`
|
||||
Feedback uint64 `yaml:"feedback" env:"APP_MULTITABLE_TABLES_FEEDBACK"`
|
||||
}
|
||||
|
||||
type LoadOptions struct {
|
||||
@@ -188,7 +186,7 @@ func (c Config) Validate() error {
|
||||
c.MultiTable.Tables.Scenarios,
|
||||
c.MultiTable.Tables.ScenarioFields,
|
||||
c.MultiTable.Tables.ScenarioRules,
|
||||
c.MultiTable.Tables.SOPVersions,
|
||||
c.MultiTable.Tables.SOPs,
|
||||
c.MultiTable.Tables.SOPNodes,
|
||||
c.MultiTable.Tables.SOPEdges,
|
||||
c.MultiTable.Tables.KnowledgeItems,
|
||||
|
||||
@@ -87,10 +87,9 @@ func TestLoadMultiTableEnvironmentConfiguration(t *testing.T) {
|
||||
"APP_MULTITABLE_TABLES_SCENARIOS": "46",
|
||||
"APP_MULTITABLE_TABLES_SCENARIO_FIELDS": "47",
|
||||
"APP_MULTITABLE_TABLES_SCENARIO_RULES": "54",
|
||||
"APP_MULTITABLE_TABLES_SOP_VERSIONS": "48",
|
||||
"APP_MULTITABLE_TABLES_SOPS": "48",
|
||||
"APP_MULTITABLE_TABLES_SOP_NODES": "49",
|
||||
"APP_MULTITABLE_TABLES_SOP_EDGES": "50",
|
||||
"APP_MULTITABLE_TABLES_KNOWLEDGE_VERSIONS": "51",
|
||||
"APP_MULTITABLE_TABLES_KNOWLEDGE_ITEMS": "55",
|
||||
"APP_MULTITABLE_TABLES_KNOWLEDGE_RELATIONS": "56",
|
||||
"APP_MULTITABLE_TABLES_RUNS": "52",
|
||||
|
||||
Reference in New Issue
Block a user