From 544f3b0a61d8653bf89b5e14b2ea022098960fdd Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Thu, 28 May 2020 18:40:26 +0100 Subject: [PATCH] Fix schema --- syncapi/storage/postgres/send_to_device_table.go | 2 -- syncapi/storage/sqlite3/send_to_device_table.go | 2 -- 2 files changed, 4 deletions(-) diff --git a/syncapi/storage/postgres/send_to_device_table.go b/syncapi/storage/postgres/send_to_device_table.go index 07da77a6f..54b924ea9 100644 --- a/syncapi/storage/postgres/send_to_device_table.go +++ b/syncapi/storage/postgres/send_to_device_table.go @@ -32,8 +32,6 @@ CREATE SEQUENCE IF NOT EXISTS syncapi_send_to_device_id; CREATE TABLE IF NOT EXISTS syncapi_send_to_device ( -- The ID that uniquely identifies this message. id BIGINT PRIMARY KEY DEFAULT nextval('syncapi_send_to_device_id'), - -- The sender of the message. - sender TEXT NOT NULL, -- The user ID to send the message to. user_id TEXT NOT NULL, -- The device ID to send the message to. diff --git a/syncapi/storage/sqlite3/send_to_device_table.go b/syncapi/storage/sqlite3/send_to_device_table.go index 9fa742210..838ad0805 100644 --- a/syncapi/storage/sqlite3/send_to_device_table.go +++ b/syncapi/storage/sqlite3/send_to_device_table.go @@ -30,8 +30,6 @@ const sendToDeviceSchema = ` CREATE TABLE IF NOT EXISTS syncapi_send_to_device ( -- The ID that uniquely identifies this message. id INTEGER PRIMARY KEY AUTOINCREMENT, - -- The sender of the message. - sender TEXT NOT NULL, -- The user ID to send the message to. user_id TEXT NOT NULL, -- The device ID to send the message to.