mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 19:22:26 +00:00
add birthday_calendar table migrations
This commit is contained in:
@@ -0,0 +1 @@
|
||||
DROP TABLE birthday_calendars;
|
||||
@@ -0,0 +1,15 @@
|
||||
CREATE TABLE birthday_calendars (
|
||||
principal TEXT NOT NULL,
|
||||
id TEXT NOT NULL,
|
||||
displayname TEXT,
|
||||
description TEXT,
|
||||
"order" INT DEFAULT 0 NOT NULL,
|
||||
color TEXT,
|
||||
timezone_id TEXT,
|
||||
deleted_at DATETIME,
|
||||
push_topic TEXT NOT NULL,
|
||||
PRIMARY KEY (principal, id),
|
||||
CONSTRAINT fk_birthdays_addressbooks FOREIGN KEY (principal, id)
|
||||
REFERENCES addressbooks (principal, id) ON DELETE CASCADE
|
||||
-- birthday calendar stores no meaningful data so we can cascade
|
||||
)
|
||||
Reference in New Issue
Block a user