🪆 Currently nesting Pusher Data (URL & Format) inside the Pusher table

This commit is contained in:
Dan Peleg 2021-04-24 00:16:41 +03:00
parent 40baacf020
commit ae0c118238
2 changed files with 2 additions and 2 deletions

View file

@ -55,7 +55,7 @@ CREATE UNIQUE INDEX IF NOT EXISTS pusher_localpart_pushkey_idx ON pusher_pushers
`
const selectPushersByLocalpartSQL = "" +
"SELECT pushkey, kind, app_id, app_display_name, device_display_name, profile_tag, language FROM pusher_pushers WHERE localpart = $1"
"SELECT pushkey, kind, app_id, app_display_name, device_display_name, profile_tag, language, url, format FROM pusher_pushers WHERE localpart = $1"
type pushersStatements struct {
selectPushersByLocalpartStmt *sql.Stmt

View file

@ -45,7 +45,7 @@ CREATE TABLE IF NOT EXISTS pusher_pushers (
);
`
const selectPushersByLocalpartSQL = "" +
"SELECT pushkey, kind, app_id, app_display_name, device_display_name, profile_tag, language FROM pusher_pushers WHERE localpart = $1"
"SELECT pushkey, kind, app_id, app_display_name, device_display_name, profile_tag, language, url, format FROM pusher_pushers WHERE localpart = $1"
type pushersStatements struct {
db *sql.DB