Skip to content

Commit bf8b45b

Browse files
committed
move function stubs in AbstractAdapter
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
1 parent 98722aa commit bf8b45b

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

src/Phinx/Db/Adapter/AbstractAdapter.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,4 +410,19 @@ protected function hasCreatedTable(string $tableName): bool
410410

411411
return in_array($tableName, $this->createdTables, true);
412412
}
413+
414+
/**
415+
* {@inheritDoc}
416+
*/
417+
public function preExecuteActions(array $updateSequences): array
418+
{
419+
return [];
420+
}
421+
422+
/**
423+
* {@inheritDoc}
424+
*/
425+
public function postExecuteActions(array $tableNames, array $preOptions): void
426+
{
427+
}
413428
}

src/Phinx/Db/Adapter/PdoAdapter.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,14 +1001,6 @@ public function changeComment(Table $table, $newComment): void
10011001
*/
10021002
abstract protected function getChangeCommentInstructions(Table $table, ?string $newComment): AlterInstructions;
10031003

1004-
/**
1005-
* {@inheritDoc}
1006-
*/
1007-
public function preExecuteActions(array $updateSequences): array
1008-
{
1009-
return [];
1010-
}
1011-
10121004
/**
10131005
* {@inheritDoc}
10141006
*
@@ -1134,11 +1126,4 @@ public function executeActions(Table $table, array $actions): void
11341126

11351127
$this->executeAlterSteps($table->getName(), $instructions);
11361128
}
1137-
1138-
/**
1139-
* {@inheritDoc}
1140-
*/
1141-
public function postExecuteActions(array $tableNames, array $preOptions): void
1142-
{
1143-
}
11441129
}

0 commit comments

Comments
 (0)