diff --git a/migrations/base/sqlite/0001_base.sql b/migrations/base/sqlite/0001_base.sql index e357e46..be30349 100644 --- a/migrations/base/sqlite/0001_base.sql +++ b/migrations/base/sqlite/0001_base.sql @@ -7,7 +7,7 @@ create table anniversaries ( month integer not null, day integer not null, year integer default 0 not null, - title text defalt '' not null + title text default '' not null ); create index anniversaries_month_day_idx on anniversaries (month, day); diff --git a/migrations/sqlite/0001_initial_state.sql b/migrations/sqlite/0001_initial_state.sql index 37b4f32..d6cbbb8 100644 --- a/migrations/sqlite/0001_initial_state.sql +++ b/migrations/sqlite/0001_initial_state.sql @@ -192,7 +192,7 @@ create table anniversaries ( month integer not null, day integer not null, year integer default 0 not null, - title text defalt '' not null + title text default '' not null ); create index anniversaries_month_day_idx on anniversaries (month, day); diff --git a/migrations/sqlite/0003_table_updates.sql b/migrations/sqlite/0003_table_updates.sql index c46a859..1124f39 100644 --- a/migrations/sqlite/0003_table_updates.sql +++ b/migrations/sqlite/0003_table_updates.sql @@ -1,3 +1,10 @@ -- @up -alter table birthdays add column announce boolean default true not null; \ No newline at end of file +alter table birthdays add column announce boolean default true not null; + +-- Anniversaries will be re-added in the future, either as a base table for +-- wedding anniversaries + birthdays or as a single purpose table. If the +-- former, anniversary types will be implemented as views, and the INSTEAD OF +-- trigger will be used for inserts and updates: +-- www.sqlite.org/lang_createtrigger.html#instead_of_trigger +drop table anniversaries; \ No newline at end of file