sqlite_store: Reorder migrations

This commit is contained in:
Lennart
2025-04-26 14:21:59 +02:00
parent 87112f3794
commit 40cb0c56e9
4 changed files with 6 additions and 2 deletions

View File

@@ -14,7 +14,9 @@ CREATE TABLE calendars (
comp_event BOOLEAN NOT NULL, comp_event BOOLEAN NOT NULL,
comp_todo BOOLEAN NOT NULL, comp_todo BOOLEAN NOT NULL,
comp_journal BOOLEAN NOT NULL, comp_journal BOOLEAN NOT NULL,
PRIMARY KEY (principal, id) PRIMARY KEY (principal, id),
CONSTRAINT fk_calendar_principal FOREIGN KEY (principal)
REFERENCES principals (id) ON DELETE RESTRICT
); );
CREATE TABLE calendarobjects ( CREATE TABLE calendarobjects (

View File

@@ -6,7 +6,9 @@ CREATE TABLE addressbooks (
description TEXT, description TEXT,
deleted_at DATETIME, deleted_at DATETIME,
push_topic TEXT UNIQUE NOT NULL, push_topic TEXT UNIQUE NOT NULL,
PRIMARY KEY (principal, id) PRIMARY KEY (principal, id),
CONSTRAINT fk_addressbook_principal FOREIGN KEY (principal)
REFERENCES principals (id) ON DELETE RESTRICT
); );
CREATE TABLE addressobjects ( CREATE TABLE addressobjects (