Merge pull request #333 from llunak/fix_sql

avoid sql error when updating sql database
This commit is contained in:
Alinson Xavier 2017-09-21 07:01:59 -05:00 committed by GitHub
commit 6d44b4124d

View File

@ -13,7 +13,7 @@ begin transaction;
habit integer not null references habits(id),
timestamp integer not null,
value integer not null);
drop index idx_repetitions_habit_timestamp;
drop index if exists idx_repetitions_habit_timestamp;
create unique index idx_repetitions_habit_timestamp on Repetitions(
habit, timestamp);
insert into Repetitions select * from RepetitionsBak;