mirror of https://github.com/iSoron/uhabits.git
parent
ecb5352134
commit
6dd7e49112
@ -1,3 +0,0 @@
|
|||||||
delete from Score;
|
|
||||||
delete from Streak;
|
|
||||||
delete from Checkmarks;
|
|
@ -1 +0,0 @@
|
|||||||
alter table Habits add column reminder_days integer not null default 127;
|
|
@ -1,3 +0,0 @@
|
|||||||
delete from Score;
|
|
||||||
delete from Streak;
|
|
||||||
delete from Checkmarks;
|
|
@ -1,4 +0,0 @@
|
|||||||
create index idx_score_habit_timestamp on Score(habit, timestamp);
|
|
||||||
create index idx_checkmark_habit_timestamp on Checkmarks(habit, timestamp);
|
|
||||||
create index idx_repetitions_habit_timestamp on Repetitions(habit, timestamp);
|
|
||||||
create index idx_streak_habit_end on Streak(habit, end);
|
|
@ -1,14 +0,0 @@
|
|||||||
update habits set color=0 where color=-2937041;
|
|
||||||
update habits set color=1 where color=-1684967;
|
|
||||||
update habits set color=2 where color=-415707;
|
|
||||||
update habits set color=3 where color=-5262293;
|
|
||||||
update habits set color=4 where color=-13070788;
|
|
||||||
update habits set color=5 where color=-16742021;
|
|
||||||
update habits set color=6 where color=-16732991;
|
|
||||||
update habits set color=7 where color=-16540699;
|
|
||||||
update habits set color=8 where color=-10603087;
|
|
||||||
update habits set color=9 where color=-7461718;
|
|
||||||
update habits set color=10 where color=-2614432;
|
|
||||||
update habits set color=11 where color=-13619152;
|
|
||||||
update habits set color=12 where color=-5592406;
|
|
||||||
update habits set color=0 where color<0 or color>12;
|
|
@ -1,3 +0,0 @@
|
|||||||
delete from Score;
|
|
||||||
delete from Streak;
|
|
||||||
delete from Checkmarks;
|
|
@ -1,2 +0,0 @@
|
|||||||
alter table Habits add column type integer not null default 0;
|
|
||||||
alter table Repetitions add column value integer not null default 2;
|
|
@ -1,11 +0,0 @@
|
|||||||
drop table Score;
|
|
||||||
create table Score (
|
|
||||||
id integer primary key autoincrement,
|
|
||||||
habit integer references habits(id),
|
|
||||||
score real,
|
|
||||||
timestamp integer);
|
|
||||||
|
|
||||||
create index idx_score_habit_timestamp on Score(habit, timestamp);
|
|
||||||
|
|
||||||
delete from streak;
|
|
||||||
delete from checkmarks;
|
|
@ -1,3 +0,0 @@
|
|||||||
alter table Habits add column target_type integer not null default 0;
|
|
||||||
alter table Habits add column target_value real not null default 0;
|
|
||||||
alter table Habits add column unit text not null default "";
|
|
@ -1,6 +0,0 @@
|
|||||||
create table Events (
|
|
||||||
id integer primary key autoincrement,
|
|
||||||
timestamp integer,
|
|
||||||
message text,
|
|
||||||
server_id integer
|
|
||||||
);
|
|
@ -1,3 +0,0 @@
|
|||||||
drop table checkmarks;
|
|
||||||
drop table streak;
|
|
||||||
drop table score;
|
|
@ -1,12 +0,0 @@
|
|||||||
update habits set color=19 where color=12;
|
|
||||||
update habits set color=17 where color=11;
|
|
||||||
update habits set color=15 where color=10;
|
|
||||||
update habits set color=14 where color=9;
|
|
||||||
update habits set color=13 where color=8;
|
|
||||||
update habits set color=10 where color=7;
|
|
||||||
update habits set color=9 where color=6;
|
|
||||||
update habits set color=8 where color=5;
|
|
||||||
update habits set color=7 where color=4;
|
|
||||||
update habits set color=5 where color=3;
|
|
||||||
update habits set color=4 where color=2;
|
|
||||||
update habits set color=0 where color<0 or color>19;
|
|
Loading…
Reference in new issue