Passed
Push — releases ( 51c2cc...e1d10c )
by steve
39:06 queued 13:38
created
migrations/deprecatedMigrations/m170724_112209_dds_link_table_creation.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,8 +9,8 @@  discard block
 block discarded – undo
9 9
  */
10 10
 class m170724_112209_dds_link_table_creation extends Migration
11 11
 {
12
-    public function safeUp()
13
-    {
12
+	public function safeUp()
13
+	{
14 14
 		// create a linking table for links
15 15
 		$tableOptions = null;
16 16
 		if ($this->db->driverName === 'mysql') {
@@ -40,8 +40,8 @@  discard block
 block discarded – undo
40 40
 
41 41
 	}
42 42
 
43
-    public function safeDown()
44
-    {
43
+	public function safeDown()
44
+	{
45 45
 		$this->dropTable('dds_link');
46 46
 		$connection = neon()->db;
47 47
 		$sql =<<<EOQ
@@ -52,5 +52,5 @@  discard block
 block discarded – undo
52 52
 		$this->execute($sql);
53 53
 		$this->dropColumn('dds_member', 'link_class');
54 54
 
55
-    }
55
+	}
56 56
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 		], $tableOptions);
27 27
 
28 28
 		// create the new link and link datatypes
29
-		$sql =<<<EOQ
29
+		$sql = <<<EOQ
30 30
 SET foreign_key_checks = 0;
31 31
 REPLACE INTO `dds_data_type` (`data_type_ref`, `label`, `description`, `definition`, `storage_ref`, `deleted`)
32 32
 VALUES
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     {
45 45
 		$this->dropTable('dds_link');
46 46
 		$connection = neon()->db;
47
-		$sql =<<<EOQ
47
+		$sql = <<<EOQ
48 48
 SET foreign_key_checks=0;
49 49
 DELETE FROM `dds_data_type` WHERE `data_type_ref`='link';
50 50
 SET foreign_key_checks=1;
Please login to merge, or discard this patch.
deprecatedMigrations/m161201_170340_dds_add_map_field_to_members.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -5,14 +5,14 @@
 block discarded – undo
5 5
 class m161201_170340_dds_add_map_field_to_members extends Migration
6 6
 {
7 7
 
8
-    public function safeUp()
9
-    {
8
+	public function safeUp()
9
+	{
10 10
 		$this->addColumn('dds_member', 'map_field', "TINYINT(1) NOT NULL DEFAULT 0 COMMENT 'If true, then this is field data used in defining maps' AFTER `definition`");
11
-    }
11
+	}
12 12
 
13
-    public function safeDown()
14
-    {
13
+	public function safeDown()
14
+	{
15 15
 		$this->dropColumn('dds_member', 'map_field');
16
-    }
16
+	}
17 17
 
18 18
 }
Please login to merge, or discard this patch.
neon/daedalus/migrations/m161130_132511_dds_uuid_change_to_22_chars.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -4,13 +4,13 @@
 block discarded – undo
4 4
 
5 5
 class m161130_132511_dds_uuid_change_to_22_chars extends Migration
6 6
 {
7
-    public function safeUp()
8
-    {
7
+	public function safeUp()
8
+	{
9 9
 		$this->alterColumn('dds_object', '_uuid', "CHAR(22) NOT NULL COMMENT 'A universally unique identifier for this object'");
10
-    }
10
+	}
11 11
 
12
-    public function safeDown()
13
-    {
12
+	public function safeDown()
13
+	{
14 14
 		$this->alterColumn('dds_object', '_uuid', "CHAR(36) NOT NULL");
15
-    }
15
+	}
16 16
 }
Please login to merge, or discard this patch.
neon/daedalus/migrations/newMigrations/m160902_204642_dds_init.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 		$connection = \Yii::$app->getDb();
16 16
 
17 17
 		// create the various tables for dds
18
-		$sql=<<<EOQ
18
+		$sql = <<<EOQ
19 19
 -- --------------------------------------------------------
20 20
 
21 21
 --
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
 		$command = $connection->createCommand($sql);
143 143
 		$command->execute();
144 144
 
145
-		$sql=<<<EOQ
145
+		$sql = <<<EOQ
146 146
 --
147 147
 -- Dumping data for table `dds_storage`
148 148
 --
Please login to merge, or discard this patch.
neon/daedalus/migrations/m160902_204642_dds_init.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 		$connection = \Yii::$app->getDb();
16 16
 
17 17
 		// create the various tables for dds
18
-		$sql=<<<EOQ
18
+		$sql = <<<EOQ
19 19
 -- --------------------------------------------------------
20 20
 
21 21
 --
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
 		$command = $connection->createCommand($sql);
143 143
 		$command->execute();
144 144
 
145
-		$sql=<<<EOQ
145
+		$sql = <<<EOQ
146 146
 --
147 147
 -- Dumping data for table `dds_storage`
148 148
 --
Please login to merge, or discard this patch.
neon/daedalus/migrations/m170103_151935_dds_new_data_types.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 
11 11
 		$this->alterColumn('dds_storage', 'type', "enum('INTEGER_TINY','INTEGER_SHORT','INTEGER','INTEGER_LONG','FLOAT','DOUBLE','DATE','DATETIME','TEXT_SHORT','TEXT','TEXT_LONG','BINARY_SHORT','BINARY','BINARY_LONG','CHAR','TIME') COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'the storage type'");
12 12
 
13
-		$sql =<<<EOQ
13
+		$sql = <<<EOQ
14 14
 SET foreign_key_checks = 0;
15 15
 REPLACE INTO {{%dds_storage}} (`storage_ref`, `label`, `type`, `description`)
16 16
 VALUES
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 		$connection->createCommand($sql)->execute();
22 22
 
23 23
 
24
-		$sql =<<<EOQ
24
+		$sql = <<<EOQ
25 25
 SET foreign_key_checks = 0;
26 26
 REPLACE INTO {{%dds_data_type}} (`data_type_ref`, `label`, `description`, `definition`, `storage_ref`, `deleted`)
27 27
 VALUES
Please login to merge, or discard this patch.
neon/cms/migrations/m140506_102106_cms_init.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 			'layout' => 'string COMMENT "the name of the layout template to load for this page"',
28 28
 			'template' => 'string COMMENT "the name of the template file"'
29 29
 		]);
30
-		$this->createTable(CmsUrl::tableName(),[
30
+		$this->createTable(CmsUrl::tableName(), [
31 31
 			'id' => 'pk',
32 32
 			'url' => 'string',
33 33
 			'page_id' => 'int',
Please login to merge, or discard this patch.
neon/cms/migrations/deprecatedMigrations/m170106_131700_cms_page.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 		$this->run('Generating Page UUIDs and nice_ids', function() {
45 45
 			// the soft delete column has not been added yet - so lets turn off this behaviour!
46 46
 			CmsPage::$softDelete = false;
47
-			foreach(CmsPage::find()->each(100) as $page) {
47
+			foreach (CmsPage::find()->each(100) as $page) {
48 48
 				$page->id = CmsPage::uuid64();
49 49
 				$page->nice_id = "page_{$page->old_id}";
50 50
 				$page->save();
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 			"UPDATE $cms_url INNER JOIN $cms_page ON $cms_page.nice_id = $cms_url.page_id SET `page_id` = $cms_page.old_id"
93 93
 		);
94 94
 		$this->execute("UPDATE $cms_page SET `id` = `old_id`");
95
-		$this->alterColumn($cms_page, 'id', $this->integer(11) . ' NOT NULL AUTO_INCREMENT');
95
+		$this->alterColumn($cms_page, 'id', $this->integer(11).' NOT NULL AUTO_INCREMENT');
96 96
 		$this->dropColumn($cms_page, 'old_id');
97 97
 		$this->dropColumn($cms_page, 'nice_id');
98 98
 		$this->alterColumn($cms_url, 'page_id', $this->integer(11)->comment('cms_page foreign key'));
Please login to merge, or discard this patch.
cms/migrations/m170107_201653_cms_create_cms_static_content_table_again.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@  discard block
 block discarded – undo
4 4
 
5 5
 class m170107_201653_cms_create_cms_static_content_table_again extends Migration
6 6
 {
7
-    public function safeUp()
8
-    {
7
+	public function safeUp()
8
+	{
9 9
 		$cms_static = 'cms_static_content';
10 10
 
11 11
 		// recreate the table with the new structure
@@ -46,10 +46,10 @@  discard block
 block discarded – undo
46 46
 //				}
47 47
 //			}
48 48
 //		} while ($count < $total);
49
-    }
49
+	}
50 50
 
51
-    public function safeDown()
52
-    {
51
+	public function safeDown()
52
+	{
53 53
 		$this->dropTable('cms_static_content');
54
-    }
54
+	}
55 55
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 
11 11
 		// recreate the table with the new structure
12 12
 		$this->execute("DROP TABLE IF EXISTS $cms_static");
13
-		$sql =<<<EOQ
13
+		$sql = <<<EOQ
14 14
 CREATE TABLE IF NOT EXISTS `cms_static_content` (
15 15
   `key` varchar(100) NOT NULL COMMENT 'a key to access the content' COLLATE utf8mb4_unicode_ci,
16 16
   `page_id` INT UNSIGNED NULL COMMENT 'if provided, restrict content to the associated page',
Please login to merge, or discard this patch.