Start to develop the budget module

This commit is contained in:
Frederic Guillot
2015-03-12 23:03:51 -04:00
parent 925ede9b48
commit 4700139a86
12 changed files with 332 additions and 4 deletions

View File

@@ -6,7 +6,19 @@ use PDO;
use Core\Security;
use Model\Link;
const VERSION = 32;
const VERSION = 33;
function version_33($pdo)
{
$pdo->exec('CREATE TABLE budget_lines (
"id" SERIAL PRIMARY KEY,
"project_id" INTEGER NOT NULL,
"amount" REAL NOT NULL,
"date" VARCHAR(10) NOT NULL,
"comment" TEXT,
FOREIGN KEY(project_id) REFERENCES projects(id) ON DELETE CASCADE
)');
}
function version_32($pdo)
{