From da425e4187e5e8e7feb9783c9d75bcaa9fa0c7ec Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 28 Feb 2015 19:54:32 -0500 Subject: Rename subtasks and files tables --- app/Schema/Postgres.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'app/Schema/Postgres.php') diff --git a/app/Schema/Postgres.php b/app/Schema/Postgres.php index c3e8fbda..aa3f60f7 100644 --- a/app/Schema/Postgres.php +++ b/app/Schema/Postgres.php @@ -6,7 +6,13 @@ use PDO; use Core\Security; use Model\Link; -const VERSION = 28; +const VERSION = 29; + +function version_29($pdo) +{ + $pdo->exec('ALTER TABLE task_has_files RENAME TO files'); + $pdo->exec('ALTER TABLE task_has_subtasks RENAME TO subtasks'); +} function version_28($pdo) { -- cgit v1.2.3