Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove recording of browsers are "mobile" (#137)
This didn't work well anyway, and now that we gave screen size stats it's not really needed any more. Fixes #136, the database after creating from scratch has the mobile column as integer, whereas my production one has boolean. Not sure how that happened, but not really worth fixing (so just remove).
- Loading branch information
Showing
9 changed files
with
83 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
begin; | ||
alter table browser_stats drop column mobile; | ||
insert into version values ('2020-01-24-1-rm-mobile'); | ||
commit; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
begin; | ||
create table browser_stats2 ( | ||
site integer not null check(site > 0), | ||
|
||
day date not null check(day = strftime('%Y-%m-%d', day)), | ||
browser varchar not null, | ||
version varchar not null, | ||
count int not null, | ||
|
||
foreign key (site) references sites(id) on delete restrict on update restrict | ||
); | ||
|
||
insert into browser_stats2 select site, day, browser, version, count from browser_stats; | ||
drop table browser_stats; | ||
alter table browser_stats2 rename to browser_stats; | ||
|
||
insert into version values ('2020-01-24-1-rm-mobile'); | ||
commit; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters