Add currency rates for budget calculation

This commit is contained in:
Frederic Guillot
2015-03-28 18:00:18 -04:00
parent eb6853c163
commit 9bfab51e00
27 changed files with 420 additions and 7 deletions

View File

@@ -6,7 +6,15 @@ use Core\Security;
use PDO;
use Model\Link;
const VERSION = 55;
const VERSION = 56;
function version_56($pdo)
{
$pdo->exec('CREATE TABLE currencies ("currency" TEXT NOT NULL UNIQUE, "rate" REAL DEFAULT 0)');
$rq = $pdo->prepare('INSERT INTO settings VALUES (?, ?)');
$rq->execute(array('application_currency', 'USD'));
}
function version_55($pdo)
{