Fix primary keys.
This commit is contained in:
parent
9c1c183ce1
commit
d650a613a8
1 changed files with 2 additions and 6 deletions
|
|
@ -201,9 +201,7 @@ create table anniversaries (
|
||||||
month integer not null,
|
month integer not null,
|
||||||
day integer not null,
|
day integer not null,
|
||||||
year integer default 0 not null,
|
year integer default 0 not null,
|
||||||
title text defalt '' not null,
|
title text defalt '' not null
|
||||||
|
|
||||||
primmary key (id)
|
|
||||||
);
|
);
|
||||||
create index anniversaries_month_day_idx on anniversaries (month, day);
|
create index anniversaries_month_day_idx on anniversaries (month, day);
|
||||||
|
|
||||||
|
|
@ -212,9 +210,7 @@ create table announcements (
|
||||||
scheduled_for datetime not null,
|
scheduled_for datetime not null,
|
||||||
reminders boolean default true not null,
|
reminders boolean default true not null,
|
||||||
title text default '' not null,
|
title text default '' not null,
|
||||||
content text default '' not null,
|
content text default '' not null
|
||||||
|
|
||||||
primary key (id)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
-- Enable with PRAGMA foreign_keys = ON;
|
-- Enable with PRAGMA foreign_keys = ON;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue