Skip to content
Snippets Groups Projects
Commit 9b1b659e authored by Robert Anderson's avatar Robert Anderson
Browse files

Changed PeriodKey to string value

parent 4993ad05
No related branches found
No related tags found
No related merge requests found
......@@ -142,7 +142,7 @@ CREATE TABLE @PREFIX@topups_summary (
TopupID @SERIAL_REF_TYPE@ NOT NULL,
PeriodKey DATETIME,
PeriodKey VARCHAR(255) NOT NULL,
Balance @INT_UNSIGNED@,
......
......@@ -394,7 +394,7 @@ sub cleanup
VALUES
(?,?,?)
',
$topup->{'ID'},$thisMonth,$trafficRemaining
$topup->{'ID'},$thisMonth->year."-".$thisMonth->month,$trafficRemaining
);
if (!$sth) {
$server->log(LOG_ERR,"[MOD_CONFIG_SQL_TOPUPS] Cleanup => Failed to update topup summary: ".
......@@ -432,7 +432,7 @@ sub cleanup
VALUES
(?,?,?)
',
$topup->{'ID'},$thisMonth,$uptimeRemaining
$topup->{'ID'},$thisMonth->year."-".$thisMonth->month,$uptimeRemaining
);
if (!$sth) {
$server->log(LOG_ERR,"[MOD_CONFIG_SQL_TOPUPS] Cleanup => Failed to update topups: ".
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment