Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Fixing quotes for postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed May 16, 2022
1 parent 1c727df commit 26cb2ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model_paymail_addresses.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ func (m *PaymailAddress) Migrate(client datastore.ClientInterface) error {
// migratePostgreSQL is specific migration SQL for Postgresql
func (m *PaymailAddress) migratePostgreSQL(client datastore.ClientInterface, tableName string) error {
idxName := "idx_" + tableName + "_paymail_address"
tx := client.Execute("CREATE INDEX IF NOT EXISTS " + idxName + " ON `" + tableName + "` (alias, domain)")
tx := client.Execute(`CREATE INDEX IF NOT EXISTS "` + idxName + `" ON "` + tableName + `" ("alias", "domain")`)
if tx.Error != nil {
return tx.Error
}
Expand Down

0 comments on commit 26cb2ab

Please sign in to comment.