mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
chore: fix syntax for postgres
This commit is contained in:
parent
3bb22e5e84
commit
391cc1e5b4
@ -1,6 +1,7 @@
|
||||
package migrations
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/emvi/logbuch"
|
||||
"github.com/muety/wakapi/config"
|
||||
"github.com/muety/wakapi/models"
|
||||
@ -28,7 +29,7 @@ func init() {
|
||||
logbuch.Error("failed to retrieve raw sql db instance")
|
||||
return err
|
||||
}
|
||||
if _, err := rawDb.Exec("delete from summary_items where type = ?", models.SummaryLabel); err != nil {
|
||||
if _, err := rawDb.Exec(fmt.Sprintf("delete from summary_items where type = %d", models.SummaryLabel)); err != nil {
|
||||
logbuch.Error("failed to delete project label summary items")
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user