Skip to content

Commit b5e010c

Browse files
committed
fix: removed spaces
1 parent 8017aa1 commit b5e010c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/migrations/MigrationRunner.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,14 +261,14 @@ public function migrateTo(string $version): void
261261
{
262262
$allMigrations = $this->getAllMigrationFiles();
263263
$targetIndex = array_search($version, $allMigrations, true);
264-
264+
265265
if ($targetIndex === false) {
266266
throw new QueryException("Migration version {$version} not found");
267267
}
268268

269269
$history = $this->getMigrationHistory();
270270
$appliedVersions = array_column($history, 'version');
271-
271+
272272
// Find the highest applied migration version (by order in allMigrations, not by apply_time)
273273
$currentIndex = -1;
274274
foreach ($appliedVersions as $appliedVersion) {
@@ -291,7 +291,7 @@ public function migrateTo(string $version): void
291291
// Rollback migrations in reverse order (newest first)
292292
// We need to rollback from currentIndex down to targetIndex+1
293293
$migrationsToRollback = array_slice($allMigrations, $targetIndex + 1, $currentIndex - $targetIndex);
294-
294+
295295
// Rollback each migration that needs to be rolled back, in reverse order
296296
foreach (array_reverse($migrationsToRollback) as $migrationVersion) {
297297
// Only rollback if migration is actually applied

tests/shared/CliToolsTests.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ public function testModelGeneratorGetForeignKeys(): void
396396
'id' => $schema->primaryKey(),
397397
'name' => $schema->string(100),
398398
]);
399-
399+
400400
// SQLite requires foreign keys to be defined during CREATE TABLE
401401
// For other databases, we can add them via ALTER TABLE
402402
try {
@@ -576,7 +576,7 @@ public function testSchemaInspectorGetTableIndexes(): void
576576
'id' => $schema->primaryKey(),
577577
'email' => $schema->string(200),
578578
]);
579-
579+
580580
try {
581581
$schema->createIndex('test_inspector_indexes', 'idx_email', ['email']);
582582
} catch (\Exception $e) {
@@ -610,7 +610,7 @@ public function testSchemaInspectorGetTableForeignKeys(): void
610610
'id' => $schema->primaryKey(),
611611
'parent_id' => $schema->integer(),
612612
]);
613-
613+
614614
try {
615615
$schema->addForeignKey('fk_parent', 'test_inspector_fk_child', 'parent_id', 'test_inspector_fk_parent', 'id');
616616
} catch (\Exception $e) {

0 commit comments

Comments
 (0)