diff --git a/src/Db/FieldDefinition.php b/src/Db/FieldDefinition.php index 91459a1..0fe6c20 100644 --- a/src/Db/FieldDefinition.php +++ b/src/Db/FieldDefinition.php @@ -132,7 +132,7 @@ public function isChangedName(FieldDefinition $comparingFieldDefinition): bool public function isChangedData(FieldDefinition $comparingFieldDefinition): bool { $paramsToCheck = get_class_methods(ColumnInterface::class); - unset($paramsToCheck['getName']); + //unset($paramsToCheck['getName']); // TODO: Validate if this even needed. $comparingFieldColumn = $comparingFieldDefinition->getColumn(); foreach ($paramsToCheck as $method) { diff --git a/src/Migrations.php b/src/Migrations.php index 1df4279..782203c 100644 --- a/src/Migrations.php +++ b/src/Migrations.php @@ -270,7 +270,8 @@ public static function run(array $options) join(PHP_EOL, $migrationsDirList) : $migrationsDirList; - throw new RuntimeException('Migrations were not found at:' . PHP_EOL . PHP_EOL . $migrationsPath); + echo Color::error('Migrations were not found at:' . $migrationsPath, 'Warning: '); + return; } // Set default final version