Skip to content

Commit

Permalink
Merge pull request #3683 from sbwalker/dev
Browse files Browse the repository at this point in the history
resolve regression installation issue with PostgreSQL
  • Loading branch information
sbwalker authored Jan 25, 2024
2 parents 0db413c + de2c565 commit 7d175ad
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Oqtane.Database.PostgreSQL/PostgreSQLDatabase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ public override string RewriteName(string name)
return _rewriter.RewriteName(name);
}

public override string RewriteName(string name, bool isQuery)
{
return _rewriter.RewriteName(name);
}

public override string RewriteValue(string value, string type)
{
if (type == "bool")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ private string RewriteSqlEntityTableName(string name)

private string RewriteName(string name)
{
return RewriteName(name, false);
return ActiveDatabase.RewriteName(name);
}

private string RewriteName(string name, bool isQuery)
Expand Down
7 changes: 6 additions & 1 deletion Oqtane.Server/Migrations/Framework/MultiDatabaseMigration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ protected MultiDatabaseMigration(IDatabase database)

protected string RewriteName(string name)
{
return ActiveDatabase.RewriteName(name);
return ActiveDatabase.RewriteName(name, false);
}

protected string RewriteName(string name, bool isQuery)
{
return ActiveDatabase.RewriteName(name, isQuery);
}
}
}

0 comments on commit 7d175ad

Please sign in to comment.