Completed
Push — master ( 3b924e...fb7a26 )
by Agiel Kurniawan
07:58
created
console/migrations/m000000_000002_user.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -25,16 +25,16 @@
 block discarded – undo
25 25
 
26 26
         $this->createTable('{{%user}}', [
27 27
             'id' => Schema::TYPE_PK,
28
-            'username' => Schema::TYPE_STRING . '(255) NOT NULL',
29
-            'email' => Schema::TYPE_STRING . '(255) NOT NULL',
30
-            'full_name' => Schema::TYPE_STRING . '(255)',
31
-            'display_name' => Schema::TYPE_STRING . '(255)',
32
-            'password_hash' => Schema::TYPE_STRING . '(255) NOT NULL',
33
-            'password_reset_token' => Schema::TYPE_STRING . '(255)',
34
-            'auth_key' => Schema::TYPE_STRING . '(32) NOT NULL',
35
-            'status' => Schema::TYPE_SMALLINT . '(6) NOT NULL DEFAULT 5',
36
-            'created_at' => Schema::TYPE_DATETIME . ' NOT NULL',
37
-            'updated_at' => Schema::TYPE_DATETIME . ' NOT NULL',
28
+            'username' => Schema::TYPE_STRING.'(255) NOT NULL',
29
+            'email' => Schema::TYPE_STRING.'(255) NOT NULL',
30
+            'full_name' => Schema::TYPE_STRING.'(255)',
31
+            'display_name' => Schema::TYPE_STRING.'(255)',
32
+            'password_hash' => Schema::TYPE_STRING.'(255) NOT NULL',
33
+            'password_reset_token' => Schema::TYPE_STRING.'(255)',
34
+            'auth_key' => Schema::TYPE_STRING.'(32) NOT NULL',
35
+            'status' => Schema::TYPE_SMALLINT.'(6) NOT NULL DEFAULT 5',
36
+            'created_at' => Schema::TYPE_DATETIME.' NOT NULL',
37
+            'updated_at' => Schema::TYPE_DATETIME.' NOT NULL',
38 38
             'login_at' => Schema::TYPE_DATETIME,
39 39
         ], $tableOptions);
40 40
 
Please login to merge, or discard this patch.
console/migrations/m000000_000019_menu_item.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,12 +23,12 @@
 block discarded – undo
23 23
 
24 24
         $this->createTable('{{%menu_item}}', [
25 25
             'id' => Schema::TYPE_PK,
26
-            'menu_id' => Schema::TYPE_INTEGER . '(11) NOT NULL',
27
-            'label' => Schema::TYPE_STRING . '(255) NOT NULL',
28
-            'url' => Schema::TYPE_TEXT . ' NOT NULL',
26
+            'menu_id' => Schema::TYPE_INTEGER.'(11) NOT NULL',
27
+            'label' => Schema::TYPE_STRING.'(255) NOT NULL',
28
+            'url' => Schema::TYPE_TEXT.' NOT NULL',
29 29
             'description' => Schema::TYPE_TEXT,
30
-            'order' => Schema::TYPE_INTEGER . '(11) NOT NULL DEFAULT 0',
31
-            'parent' => Schema::TYPE_INTEGER . '(11) NOT NULL DEFAULT 0',
30
+            'order' => Schema::TYPE_INTEGER.'(11) NOT NULL DEFAULT 0',
31
+            'parent' => Schema::TYPE_INTEGER.'(11) NOT NULL DEFAULT 0',
32 32
             'options' => Schema::TYPE_TEXT,
33 33
             'FOREIGN KEY ([[menu_id]]) REFERENCES {{%menu}} ([[id]]) ON DELETE CASCADE ON UPDATE CASCADE',
34 34
         ], $tableOptions);
Please login to merge, or discard this patch.
console/migrations/m000000_000009_post_type_taxonomy.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@
 block discarded – undo
22 22
         }
23 23
 
24 24
         $this->createTable('{{%post_type_taxonomy}}', [
25
-            'post_type_id' => Schema::TYPE_INTEGER . '(11) NOT NULL',
26
-            'taxonomy_id' => Schema::TYPE_INTEGER . '(11) NOT NULL',
25
+            'post_type_id' => Schema::TYPE_INTEGER.'(11) NOT NULL',
26
+            'taxonomy_id' => Schema::TYPE_INTEGER.'(11) NOT NULL',
27 27
             'PRIMARY KEY ([[post_type_id]], [[taxonomy_id]])',
28 28
             'FOREIGN KEY ([[post_type_id]]) REFERENCES {{%post_type}} ([[id]]) ON DELETE CASCADE ON UPDATE CASCADE',
29 29
             'FOREIGN KEY ([[taxonomy_id]]) REFERENCES {{%taxonomy}} ([[id]]) ON DELETE CASCADE ON UPDATE CASCADE',
Please login to merge, or discard this patch.
console/migrations/m000000_000018_menu.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@
 block discarded – undo
23 23
 
24 24
         $this->createTable('{{%menu}}', [
25 25
             'id' => Schema::TYPE_PK,
26
-            'title' => Schema::TYPE_STRING . '(255) NOT NULL',
27
-            'location' => Schema::TYPE_STRING . '(50)',
26
+            'title' => Schema::TYPE_STRING.'(255) NOT NULL',
27
+            'location' => Schema::TYPE_STRING.'(50)',
28 28
         ], $tableOptions);
29 29
     }
30 30
 
Please login to merge, or discard this patch.
console/migrations/m000000_000021_widget.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -23,13 +23,13 @@
 block discarded – undo
23 23
 
24 24
         $this->createTable('{{%widget}}', [
25 25
             'id' => Schema::TYPE_PK,
26
-            'title' => Schema::TYPE_STRING . '(255) NOT NULL',
27
-            'config' => Schema::TYPE_TEXT . ' NOT NULL',
28
-            'location' => Schema::TYPE_STRING . '(128) NOT NULL',
29
-            'order' => Schema::TYPE_INTEGER . '(11) NOT NULL DEFAULT 0',
30
-            'directory' => Schema::TYPE_STRING . '(128) NOT NULL',
31
-            'date' => Schema::TYPE_DATETIME . ' NOT NULL',
32
-            'modified' => Schema::TYPE_DATETIME . ' NOT NULL',
26
+            'title' => Schema::TYPE_STRING.'(255) NOT NULL',
27
+            'config' => Schema::TYPE_TEXT.' NOT NULL',
28
+            'location' => Schema::TYPE_STRING.'(128) NOT NULL',
29
+            'order' => Schema::TYPE_INTEGER.'(11) NOT NULL DEFAULT 0',
30
+            'directory' => Schema::TYPE_STRING.'(128) NOT NULL',
31
+            'date' => Schema::TYPE_DATETIME.' NOT NULL',
32
+            'modified' => Schema::TYPE_DATETIME.' NOT NULL',
33 33
         ], $tableOptions);
34 34
     }
35 35
 
Please login to merge, or discard this patch.
console/migrations/m000000_000012_term_relationship.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@
 block discarded – undo
22 22
         }
23 23
 
24 24
         $this->createTable('{{%term_relationship}}', [
25
-            'post_id' => Schema::TYPE_INTEGER . '(11) NOT NULL',
26
-            'term_id' => Schema::TYPE_INTEGER . '(11) NOT NULL',
25
+            'post_id' => Schema::TYPE_INTEGER.'(11) NOT NULL',
26
+            'term_id' => Schema::TYPE_INTEGER.'(11) NOT NULL',
27 27
             'PRIMARY KEY ([[post_id]], [[term_id]])',
28 28
             'FOREIGN KEY ([[post_id]]) REFERENCES {{%post}} ([[id]]) ON DELETE CASCADE ON UPDATE CASCADE',
29 29
             'FOREIGN KEY ([[term_id]]) REFERENCES {{%term}} ([[id]]) ON DELETE CASCADE ON UPDATE CASCADE',
Please login to merge, or discard this patch.
console/migrations/m000000_000011_post.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -23,18 +23,18 @@
 block discarded – undo
23 23
 
24 24
         $this->createTable('{{%post}}', [
25 25
             'id' => Schema::TYPE_PK,
26
-            'author' => Schema::TYPE_INTEGER . '(11) NOT NULL',
27
-            'type' => Schema::TYPE_INTEGER . '(11)',
28
-            'title' => Schema::TYPE_TEXT . ' NOT NULL',
26
+            'author' => Schema::TYPE_INTEGER.'(11) NOT NULL',
27
+            'type' => Schema::TYPE_INTEGER.'(11)',
28
+            'title' => Schema::TYPE_TEXT.' NOT NULL',
29 29
             'excerpt' => Schema::TYPE_TEXT,
30 30
             'content' => Schema::TYPE_TEXT,
31
-            'date' => Schema::TYPE_DATETIME . ' NOT NULL',
32
-            'modified' => Schema::TYPE_DATETIME . ' NOT NULL',
33
-            'status' => Schema::TYPE_STRING . "(20) NOT NULL DEFAULT 'publish'",
34
-            'password' => Schema::TYPE_STRING . '(255)',
35
-            'slug' => Schema::TYPE_STRING . '(255) NOT NULL',
36
-            'comment_status' => Schema::TYPE_STRING . "(20) NOT NULL DEFAULT 'open'",
37
-            'comment_count' => Schema::TYPE_INTEGER . '(11) NOT NULL DEFAULT 0',
31
+            'date' => Schema::TYPE_DATETIME.' NOT NULL',
32
+            'modified' => Schema::TYPE_DATETIME.' NOT NULL',
33
+            'status' => Schema::TYPE_STRING."(20) NOT NULL DEFAULT 'publish'",
34
+            'password' => Schema::TYPE_STRING.'(255)',
35
+            'slug' => Schema::TYPE_STRING.'(255) NOT NULL',
36
+            'comment_status' => Schema::TYPE_STRING."(20) NOT NULL DEFAULT 'open'",
37
+            'comment_count' => Schema::TYPE_INTEGER.'(11) NOT NULL DEFAULT 0',
38 38
             'FOREIGN KEY ([[type]]) REFERENCES {{%post_type}} ([[id]]) ON DELETE SET NULL ON UPDATE CASCADE',
39 39
             'FOREIGN KEY ([[author]]) REFERENCES {{%user}} ([[id]]) ON DELETE CASCADE ON UPDATE CASCADE',
40 40
         ], $tableOptions);
Please login to merge, or discard this patch.
console/migrations/m000000_000013_post_meta.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,9 +23,9 @@
 block discarded – undo
23 23
 
24 24
         $this->createTable('{{%post_meta}}', [
25 25
             'id' => Schema::TYPE_PK,
26
-            'post_id' => Schema::TYPE_INTEGER . '(11) NOT NULL',
27
-            'name' => Schema::TYPE_STRING . '(255) NOT NULL',
28
-            'value' => Schema::TYPE_TEXT . ' NOT NULL',
26
+            'post_id' => Schema::TYPE_INTEGER.'(11) NOT NULL',
27
+            'name' => Schema::TYPE_STRING.'(255) NOT NULL',
28
+            'value' => Schema::TYPE_TEXT.' NOT NULL',
29 29
             'FOREIGN KEY ([[post_id]]) REFERENCES {{%post}} ([[id]]) ON DELETE CASCADE ON UPDATE CASCADE',
30 30
         ], $tableOptions);
31 31
     }
Please login to merge, or discard this patch.
console/migrations/m000000_000004_auth_item.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,13 +23,13 @@
 block discarded – undo
23 23
         }
24 24
 
25 25
         $this->createTable('{{%auth_item}}', [
26
-            'name' => Schema::TYPE_STRING . '(64) NOT NULL',
27
-            'type' => Schema::TYPE_INTEGER . '(11) NOT NULL',
26
+            'name' => Schema::TYPE_STRING.'(64) NOT NULL',
27
+            'type' => Schema::TYPE_INTEGER.'(11) NOT NULL',
28 28
             'description' => Schema::TYPE_TEXT,
29
-            'rule_name' => Schema::TYPE_STRING . '(64)',
29
+            'rule_name' => Schema::TYPE_STRING.'(64)',
30 30
             'data' => Schema::TYPE_TEXT,
31
-            'created_at' => Schema::TYPE_INTEGER . '(11)',
32
-            'updated_at' => Schema::TYPE_INTEGER . '(11)',
31
+            'created_at' => Schema::TYPE_INTEGER.'(11)',
32
+            'updated_at' => Schema::TYPE_INTEGER.'(11)',
33 33
             'PRIMARY KEY ([[name]])',
34 34
             'FOREIGN KEY ([[rule_name]]) REFERENCES {{%auth_rule}} ([[name]]) ON DELETE CASCADE ON UPDATE CASCADE',
35 35
         ], $tableOptions);
Please login to merge, or discard this patch.