diff --git a/common/src/commonMain/sqldelight/com/artemchep/keyguard/data/UrlOverride.sq b/common/src/commonMain/sqldelight/com/artemchep/keyguard/data/UrlOverride.sq index ab2425fc..9fea8d70 100644 --- a/common/src/commonMain/sqldelight/com/artemchep/keyguard/data/UrlOverride.sq +++ b/common/src/commonMain/sqldelight/com/artemchep/keyguard/data/UrlOverride.sq @@ -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 diff --git a/common/src/commonMain/sqldelight/migrations/9.sqm b/common/src/commonMain/sqldelight/migrations/9.sqm new file mode 100644 index 00000000..bfa4aa35 --- /dev/null +++ b/common/src/commonMain/sqldelight/migrations/9.sqm @@ -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 +);