Skip to content

Commit 69c1ea9

Browse files
authored
Merge pull request #142 from phalcon/#141-empty-folder-no-throw
#141 - Change `RuntimeException` throw to output warning message
2 parents 68281b6 + 6058786 commit 69c1ea9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Db/FieldDefinition.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public function isChangedName(FieldDefinition $comparingFieldDefinition): bool
132132
public function isChangedData(FieldDefinition $comparingFieldDefinition): bool
133133
{
134134
$paramsToCheck = get_class_methods(ColumnInterface::class);
135-
unset($paramsToCheck['getName']);
135+
//unset($paramsToCheck['getName']); // TODO: Validate if this even needed.
136136

137137
$comparingFieldColumn = $comparingFieldDefinition->getColumn();
138138
foreach ($paramsToCheck as $method) {

src/Migrations.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,8 @@ public static function run(array $options)
270270
join(PHP_EOL, $migrationsDirList) :
271271
$migrationsDirList;
272272

273-
throw new RuntimeException('Migrations were not found at:' . PHP_EOL . PHP_EOL . $migrationsPath);
273+
echo Color::error('Migrations were not found at:' . $migrationsPath, 'Warning: ');
274+
return;
274275
}
275276

276277
// Set default final version

0 commit comments

Comments
 (0)