Completed
Push — master ( 2f39ac...d23d56 )
by Jan
08:52
created
src/Migrations/Version1.php 1 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
         $skip_this_version = false;
27 27
         try {
28 28
             //Check if we can use this migration method:
29
-            $version = (int)$this->connection->fetchColumn("SELECT keyValue AS version FROM `internal` WHERE `keyName` = 'dbVersion'");
29
+            $version = (int) $this->connection->fetchColumn("SELECT keyValue AS version FROM `internal` WHERE `keyName` = 'dbVersion'");
30 30
 
31 31
             $this->skipIf(true, "Old Part-DB Database detected! Continue with upgrade...");
32 32
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         $this->addSql('ALTER TABLE `users` ADD CONSTRAINT FK_1483A5E9FE54D947 FOREIGN KEY (group_id) REFERENCES `groups` (id)');
74 74
 
75 75
         //Create table for user logs:
76
-        $sql =  $updateSteps[] = "CREATE TABLE `log` ".
76
+        $sql = $updateSteps[] = "CREATE TABLE `log` ".
77 77
             "( `id` INT NOT NULL AUTO_INCREMENT , `datetime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP() ,".
78 78
             " `id_user` INT NOT NULL ,".
79 79
             " `level` TINYINT NOT NULL ,".
Please login to merge, or discard this patch.