Fix schema

This commit is contained in:
Neil Alexander 2020-05-28 18:40:26 +01:00
parent e4eba873f5
commit 544f3b0a61
2 changed files with 0 additions and 4 deletions

View file

@ -32,8 +32,6 @@ CREATE SEQUENCE IF NOT EXISTS syncapi_send_to_device_id;
CREATE TABLE IF NOT EXISTS syncapi_send_to_device ( CREATE TABLE IF NOT EXISTS syncapi_send_to_device (
-- The ID that uniquely identifies this message. -- The ID that uniquely identifies this message.
id BIGINT PRIMARY KEY DEFAULT nextval('syncapi_send_to_device_id'), 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. -- The user ID to send the message to.
user_id TEXT NOT NULL, user_id TEXT NOT NULL,
-- The device ID to send the message to. -- The device ID to send the message to.

View file

@ -30,8 +30,6 @@ const sendToDeviceSchema = `
CREATE TABLE IF NOT EXISTS syncapi_send_to_device ( CREATE TABLE IF NOT EXISTS syncapi_send_to_device (
-- The ID that uniquely identifies this message. -- The ID that uniquely identifies this message.
id INTEGER PRIMARY KEY AUTOINCREMENT, id INTEGER PRIMARY KEY AUTOINCREMENT,
-- The sender of the message.
sender TEXT NOT NULL,
-- The user ID to send the message to. -- The user ID to send the message to.
user_id TEXT NOT NULL, user_id TEXT NOT NULL,
-- The device ID to send the message to. -- The device ID to send the message to.