UniStore: Add folder to the SQL backend (#95671)

* Add folder to the SQL backend

* remove unused key

* fix tests

* Return folders from watch
This commit is contained in:
Georges Chaudy
2024-11-05 10:37:23 +01:00
committed by GitHub
parent 7e34c015ee
commit f075662696
43 changed files with 235 additions and 72 deletions
@@ -113,5 +113,13 @@ func initResourceTables(mg *migrator.Migrator) string {
Cols: []string{"group", "resource"}, Type: migrator.IndexType,
}))
mg.AddMigration("Add column folder in resource_history", migrator.NewAddColumnMigration(resource_history_table, &migrator.Column{
Name: "folder", Type: migrator.DB_NVarchar, Length: 253, Nullable: true,
}))
mg.AddMigration("Add column folder in resource", migrator.NewAddColumnMigration(resource_table, &migrator.Column{
Name: "folder", Type: migrator.DB_NVarchar, Length: 253, Nullable: true,
}))
return marker
}