Skip to content

Commit

Permalink
feat: Add and enable HTTPS-ify URL override by default
Browse files Browse the repository at this point in the history
  • Loading branch information
AChep committed Jan 28, 2024
1 parent 9df9b68 commit a874d88
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ CREATE TABLE urlOverride (
enabled INTEGER NOT NULL
);

INSERT INTO urlOverride(name, regex, command, createdAt, enabled)
VALUES (
'HTTPS-ify',
'^http:.*',
'https://{url:rmvscm}',
CAST(unixepoch('subsecond') * 1000 AS INTEGER),
1
);

update {
UPDATE urlOverride
SET
Expand Down
8 changes: 8 additions & 0 deletions common/src/commonMain/sqldelight/migrations/9.sqm
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
INSERT INTO urlOverride(name, regex, command, createdAt, enabled)
VALUES (
'HTTPS-ify',
'^http:.*',
'https://{url:rmvscm}',
CAST(unixepoch('subsecond') * 1000 AS INTEGER),
1
);

0 comments on commit a874d88

Please sign in to comment.