Skip to content

Commit

Permalink
fixed issue with table names not in lower case in postgresql (#20)
Browse files Browse the repository at this point in the history
(cherry picked from commit 516a7d5)
  • Loading branch information
fritz-net committed Nov 15, 2021
1 parent 473cfa5 commit 9cf9446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Laraue.EfCoreTriggers.PostgreSql/PostgreSqlProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public override SqlBuilder GetTriggerSql<TTriggerEntity>(Trigger<TTriggerEntity>
.Append(" RETURN NEW;END;")
.Append($"${trigger.Name}$ LANGUAGE plpgsql;")
.Append($"CREATE TRIGGER {trigger.Name} {GetTriggerTimeName(trigger.TriggerTime)} {trigger.TriggerEvent.ToString().ToUpper()} ")
.Append($"ON {GetTableName(typeof(TTriggerEntity))} FOR EACH ROW EXECUTE PROCEDURE {trigger.Name}();");
.Append($"ON \"{GetTableName(typeof(TTriggerEntity))}\" FOR EACH ROW EXECUTE PROCEDURE {trigger.Name}();");
}

protected override string GetNewGuidExpressionSql() => "uuid_generate_v4()";
Expand Down

0 comments on commit 9cf9446

Please sign in to comment.