From 9e1e31c774b94dbf6808ccb4e2204c2b5b1dfa5d Mon Sep 17 00:00:00 2001 From: Benjamin Fleming Date: Thu, 28 Apr 2016 20:50:17 +1000 Subject: [PATCH] Added migration for feature #8 --- .../m160428_202308_Neo_UpdateBlockLevels.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 neo/migrations/m160428_202308_Neo_UpdateBlockLevels.php diff --git a/neo/migrations/m160428_202308_Neo_UpdateBlockLevels.php b/neo/migrations/m160428_202308_Neo_UpdateBlockLevels.php new file mode 100644 index 00000000..df62d74b --- /dev/null +++ b/neo/migrations/m160428_202308_Neo_UpdateBlockLevels.php @@ -0,0 +1,13 @@ +getTableName(); + craft()->db->createCommand()->update($tableName, ['level' => new \CDbExpression('level + 1')]); + + return true; + } +}