From ae0c118238b6c6065306bf4027e97b23ab63f45c Mon Sep 17 00:00:00 2001 From: Dan Peleg Date: Sat, 24 Apr 2021 00:16:41 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=AA=86=20Currently=20nesting=20Pusher=20D?= =?UTF-8?q?ata=20(URL=20&=20Format)=20inside=20the=20Pusher=20table?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- userapi/storage/pushers/postgres/pushers_table.go | 2 +- userapi/storage/pushers/sqlite3/pushers_table.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/userapi/storage/pushers/postgres/pushers_table.go b/userapi/storage/pushers/postgres/pushers_table.go index a376f6ba..8d5d01e1 100644 --- a/userapi/storage/pushers/postgres/pushers_table.go +++ b/userapi/storage/pushers/postgres/pushers_table.go @@ -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 diff --git a/userapi/storage/pushers/sqlite3/pushers_table.go b/userapi/storage/pushers/sqlite3/pushers_table.go index 374112e6..b4b19d58 100644 --- a/userapi/storage/pushers/sqlite3/pushers_table.go +++ b/userapi/storage/pushers/sqlite3/pushers_table.go @@ -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