Change id
type in SQL to TEXT
This commit is contained in:
parent
8efd4036a6
commit
bc8d204a71
@ -1,7 +1,7 @@
|
|||||||
-- external_servers_preferences definition
|
-- external_servers_preferences definition
|
||||||
|
|
||||||
CREATE TABLE external_servers_preferences (
|
CREATE TABLE external_servers_preferences (
|
||||||
id BLOB NOT NULL PRIMARY KEY,
|
id TEXT NOT NULL PRIMARY KEY,
|
||||||
external_servers BLOB NOT NULL,
|
external_servers BLOB NOT NULL,
|
||||||
external_servers_limit TEXT NOT NULL,
|
external_servers_limit TEXT NOT NULL,
|
||||||
CONSTRAINT external_servers_preferences_FK FOREIGN KEY (id) REFERENCES users(id) ON DELETE CASCADE ON UPDATE CASCADE
|
CONSTRAINT external_servers_preferences_FK FOREIGN KEY (id) REFERENCES users(id) ON DELETE CASCADE ON UPDATE CASCADE
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
-- external_servers_privacy_preferences definition
|
-- external_servers_privacy_preferences definition
|
||||||
|
|
||||||
CREATE TABLE external_servers_privacy_preferences (
|
CREATE TABLE external_servers_privacy_preferences (
|
||||||
id BLOB NOT NULL PRIMARY KEY,
|
id TEXT NOT NULL PRIMARY KEY,
|
||||||
discovery BLOB NOT NULL,
|
discovery BLOB NOT NULL,
|
||||||
discovery_user_limit TEXT NOT NULL,
|
discovery_user_limit TEXT NOT NULL,
|
||||||
discovery_server_limit TEXT NOT NULL,
|
discovery_server_limit TEXT NOT NULL,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
-- notification_preferences definition
|
-- notification_preferences definition
|
||||||
|
|
||||||
CREATE TABLE notification_preferences (
|
CREATE TABLE notification_preferences (
|
||||||
id BLOB NOT NULL PRIMARY KEY,
|
id TEXT NOT NULL PRIMARY KEY,
|
||||||
lock_details BOOLEAN DEFAULT 0 NOT NULL CHECK (lock_details IN (0, 1)),
|
lock_details BOOLEAN DEFAULT 0 NOT NULL CHECK (lock_details IN (0, 1)),
|
||||||
do_not_disturb BOOLEAN DEFAULT 0 NOT NULL CHECK (do_not_disturb IN (0, 1)),
|
do_not_disturb BOOLEAN DEFAULT 0 NOT NULL CHECK (do_not_disturb IN (0, 1)),
|
||||||
CONSTRAINT notification_preferences_FK FOREIGN KEY (id) REFERENCES users(id) ON DELETE CASCADE ON UPDATE CASCADE
|
CONSTRAINT notification_preferences_FK FOREIGN KEY (id) REFERENCES users(id) ON DELETE CASCADE ON UPDATE CASCADE
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
-- privacy_preferences definition
|
-- privacy_preferences definition
|
||||||
|
|
||||||
CREATE TABLE privacy_preferences (
|
CREATE TABLE privacy_preferences (
|
||||||
id BLOB NOT NULL PRIMARY KEY,
|
id TEXT NOT NULL PRIMARY KEY,
|
||||||
discovery BLOB NOT NULL,
|
discovery BLOB NOT NULL,
|
||||||
discovery_user_limit TEXT NOT NULL,
|
discovery_user_limit TEXT NOT NULL,
|
||||||
discovery_server_limit TEXT NOT NULL,
|
discovery_server_limit TEXT NOT NULL,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
-- security_preferences definition
|
-- security_preferences definition
|
||||||
|
|
||||||
CREATE TABLE "security_preferences" (
|
CREATE TABLE "security_preferences" (
|
||||||
id BLOB NOT NULL PRIMARY KEY,
|
id TEXT NOT NULL PRIMARY KEY,
|
||||||
account_tokens TEXT NOT NULL,
|
account_tokens TEXT NOT NULL,
|
||||||
password_hash TEXT NOT NULL,
|
password_hash TEXT NOT NULL,
|
||||||
CONSTRAINT NewTable_FK FOREIGN KEY (id) REFERENCES users(id) ON DELETE CASCADE ON UPDATE CASCADE
|
CONSTRAINT NewTable_FK FOREIGN KEY (id) REFERENCES users(id) ON DELETE CASCADE ON UPDATE CASCADE
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
-- users definition
|
-- users definition
|
||||||
|
|
||||||
CREATE TABLE users (
|
CREATE TABLE users (
|
||||||
id BLOB NOT NULL PRIMARY KEY,
|
id TEXT NOT NULL PRIMARY KEY,
|
||||||
user_name TEXT NOT NULL,
|
user_name TEXT NOT NULL,
|
||||||
display_name TEXT,
|
display_name TEXT,
|
||||||
activated BOOLEAN DEFAULT 0 NOT NULL CHECK (activated IN (0, 1)),
|
activated BOOLEAN DEFAULT 0 NOT NULL CHECK (activated IN (0, 1)),
|
||||||
|
Loading…
Reference in New Issue
Block a user