fix #1659 installation issue on PostgreSQL by ntroducing a new RewriteValue method which can be overridden in a database provider to provide custom behavior. Updated PostgreSQL provide to utilize new method. Also added an Oqtane.Server project reference to the module and theme external templates to streamline the development experience (credit @leighpointer).
This commit is contained in:
@ -88,6 +88,15 @@ namespace Oqtane.Database.PostgreSQL
|
||||
return _rewriter.RewriteName(name);
|
||||
}
|
||||
|
||||
public override string RewriteValue(string value, string type)
|
||||
{
|
||||
if (type == "bool")
|
||||
{
|
||||
value = (value == "1") ? "true" : "false";
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public override void UpdateIdentityStoreTableNames(ModelBuilder builder)
|
||||
{
|
||||
foreach(var entity in builder.Model.GetEntityTypes())
|
||||
|
Reference in New Issue
Block a user