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:
Shaun Walker
2021-09-17 13:56:19 -04:00
parent b4f7344ae4
commit db85e088bf
8 changed files with 73 additions and 50 deletions

View File

@ -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())