2
0
Эх сурвалжийг харах

fix paper database sync bug

phpdevcommunity 1 сар өмнө
parent
commit
33dbd1c752

+ 1 - 1
src/Command/DatabaseCreateCommand.php

@@ -50,7 +50,7 @@ class DatabaseCreateCommand implements CommandInterface
             $io->info(sprintf('The SQL database "%s" has been successfully created (if it did not already exist).', $platform->getDatabaseName()));
         } else {
             $platform->createDatabase();
-            $io->success(sprintf('The SQL database "%s" has been successfully created.', $platform->getDatabaseName()));
+            $io->success(sprintf('The SQL database "%s" has been successfully created.', $platform->getDatabaseName()));
         }
     }
 }

+ 1 - 1
src/Command/DatabaseDropCommand.php

@@ -58,7 +58,7 @@ class DatabaseDropCommand implements CommandInterface
 
         $platform = $this->entityManager->getPlatform();
         $platform->dropDatabase();
-        $io->success('The SQL database has been successfully dropped.');
+        $io->success('The SQL database has been successfully dropped.');
     }
 
     private function isEnabled(): bool

+ 1 - 1
src/Command/DatabaseSyncCommand.php

@@ -97,7 +97,7 @@ class DatabaseSyncCommand implements CommandInterface
             $io->writeln("✔ Executed: {$sql}");
         }
 
-        $io->success("Database successfully synchronized.");
+        $io->success("Database successfully synchronized.");
     }
 
     private function isEnabled(): bool

+ 1 - 1
src/Migration/PaperMigration.php

@@ -139,7 +139,7 @@ SQL;
         $tables = self::transformEntitiesToTables($entities);
         $diff = $this->computeDiffTables($tables);
 
-        return $diff['up'] ?: [];
+        return $diff['up'] ?? [];
     }
 
     /**