mirror of
https://github.com/ellite/Wallos.git
synced 2026-08-02 03:06:16 -04:00
feat: option for the week to start on sunday feat: redesign login / registration pages feat: more statistics feat: declarative oidc settings feat: grid view for subscriptions feat: subscription details popup feat: translate categories with ai feat: google image search with serpapi feat: selfh.st image search feat: dashboard icons image search fix: improve background removal feature for logos feat: v2.0 api - write endpoints fix: include todays subscriptions on amount due this month fix: calendar occurrences to respect subscription start date fix: honor configured outbound proxy for logo search without reopening httpoxy SSRF bypass fix: remove hardcode string from the admin page fix: ssrf via http proxy env var in payments logo search fix: require cron auth guard on storetotalyearlycost.php fix: validate per-user smtp host against ssrf fix: escape iCal property values to prevent crlf injection
14 lines
673 B
PHP
14 lines
673 B
PHP
<?php
|
|
// This migration adds usage columns to the fixer table. They store the monthly
|
|
// quota reported by apilayer response headers (captured during rate updates),
|
|
// so the settings page can show usage without spending extra API requests.
|
|
|
|
$columnQuery = $db->query("SELECT * FROM pragma_table_info('fixer') where name='usage_used'");
|
|
$columnRequired = $columnQuery->fetchArray(SQLITE3_ASSOC) === false;
|
|
|
|
if ($columnRequired) {
|
|
$db->exec("ALTER TABLE fixer ADD COLUMN usage_used INTEGER DEFAULT NULL");
|
|
$db->exec("ALTER TABLE fixer ADD COLUMN usage_limit INTEGER DEFAULT NULL");
|
|
$db->exec("ALTER TABLE fixer ADD COLUMN usage_updated_at TEXT DEFAULT NULL");
|
|
}
|