Unistore: fix fodler migration (#96299)

configure default migration for resource folder
This commit is contained in:
Georges Chaudy 2024-11-12 15:06:42 +01:00 committed by GitHub
parent 749f59b3e3
commit f4e91da6b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -114,11 +114,11 @@ func initResourceTables(mg *migrator.Migrator) string {
}))
mg.AddMigration("Add column folder in resource_history", migrator.NewAddColumnMigration(resource_history_table, &migrator.Column{
Name: "folder", Type: migrator.DB_NVarchar, Length: 253, Nullable: false, Default: "",
Name: "folder", Type: migrator.DB_NVarchar, Length: 253, Nullable: false, Default: "''",
}))
mg.AddMigration("Add column folder in resource", migrator.NewAddColumnMigration(resource_table, &migrator.Column{
Name: "folder", Type: migrator.DB_NVarchar, Length: 253, Nullable: false, Default: "",
Name: "folder", Type: migrator.DB_NVarchar, Length: 253, Nullable: false, Default: "''",
}))
return marker