summaryrefslogtreecommitdiff
path: root/app/Schema
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-10-17 10:09:03 -0400
committerFrederic Guillot <fred@kanboard.net>2015-10-17 10:09:03 -0400
commit8c532efd5f02f7a7e5ea322a07ddcf49d130a8ec (patch)
tree289222e21420b8d0092f06de097090f179202f6b /app/Schema
parentb40190ee9fd557d86e594208ed77fa762c7dcfb7 (diff)
Run php-cs-fixer on the code base
Diffstat (limited to 'app/Schema')
-rw-r--r--app/Schema/Mysql.php1
-rw-r--r--app/Schema/Postgres.php13
-rw-r--r--app/Schema/Sqlite.php13
3 files changed, 12 insertions, 15 deletions
diff --git a/app/Schema/Mysql.php b/app/Schema/Mysql.php
index a0febc1a..edf63919 100644
--- a/app/Schema/Mysql.php
+++ b/app/Schema/Mysql.php
@@ -411,7 +411,6 @@ function version_49($pdo)
$rq->execute();
foreach ($rq->fetchAll(PDO::FETCH_ASSOC) as $subtask) {
-
if ($task_id != $subtask['task_id']) {
$position = 1;
$task_id = $subtask['task_id'];
diff --git a/app/Schema/Postgres.php b/app/Schema/Postgres.php
index 517ded85..0cc31616 100644
--- a/app/Schema/Postgres.php
+++ b/app/Schema/Postgres.php
@@ -399,7 +399,6 @@ function version_30($pdo)
$rq->execute();
foreach ($rq->fetchAll(PDO::FETCH_ASSOC) as $subtask) {
-
if ($task_id != $subtask['task_id']) {
$position = 1;
$task_id = $subtask['task_id'];
@@ -459,13 +458,13 @@ function version_27($pdo)
function version_26($pdo)
{
- $pdo->exec('ALTER TABLE tasks ADD COLUMN date_moved INT DEFAULT 0');
+ $pdo->exec('ALTER TABLE tasks ADD COLUMN date_moved INT DEFAULT 0');
- /* Update tasks.date_moved from project_activities table if tasks.date_moved = null or 0.
- * We take max project_activities.date_creation where event_name in task.create','task.move.column
- * since creation date is always less than task moves
- */
- $pdo->exec("UPDATE tasks
+ /* Update tasks.date_moved from project_activities table if tasks.date_moved = null or 0.
+ * We take max project_activities.date_creation where event_name in task.create','task.move.column
+ * since creation date is always less than task moves
+ */
+ $pdo->exec("UPDATE tasks
SET date_moved = (
SELECT md
FROM (
diff --git a/app/Schema/Sqlite.php b/app/Schema/Sqlite.php
index e9e86fcc..70b9d160 100644
--- a/app/Schema/Sqlite.php
+++ b/app/Schema/Sqlite.php
@@ -359,7 +359,6 @@ function version_48($pdo)
$rq->execute();
foreach ($rq->fetchAll(PDO::FETCH_ASSOC) as $subtask) {
-
if ($task_id != $subtask['task_id']) {
$position = 1;
$task_id = $subtask['task_id'];
@@ -419,13 +418,13 @@ function version_45($pdo)
function version_44($pdo)
{
- $pdo->exec('ALTER TABLE tasks ADD COLUMN date_moved INTEGER DEFAULT 0');
+ $pdo->exec('ALTER TABLE tasks ADD COLUMN date_moved INTEGER DEFAULT 0');
- /* Update tasks.date_moved from project_activities table if tasks.date_moved = null or 0.
- * We take max project_activities.date_creation where event_name in task.create','task.move.column
- * since creation date is always less than task moves
- */
- $pdo->exec("UPDATE tasks
+ /* Update tasks.date_moved from project_activities table if tasks.date_moved = null or 0.
+ * We take max project_activities.date_creation where event_name in task.create','task.move.column
+ * since creation date is always less than task moves
+ */
+ $pdo->exec("UPDATE tasks
SET date_moved = (
SELECT md
FROM (