mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
Merge pull request #1008 from romainneutron/final-methods
[Ready][3.9] Make doctrine migration up and down method final
This commit is contained in:
@@ -54,7 +54,7 @@ abstract class AbstractMigration extends BaseMigration
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function up(Schema $schema)
|
||||
final public function up(Schema $schema)
|
||||
{
|
||||
$this->abortIf($this->connection->getDatabasePlatform()->getName() != "mysql", "Migration can only be executed safely on 'mysql'.");
|
||||
|
||||
@@ -66,7 +66,7 @@ abstract class AbstractMigration extends BaseMigration
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function down(Schema $schema)
|
||||
final public function down(Schema $schema)
|
||||
{
|
||||
$this->abortIf($this->connection->getDatabasePlatform()->getName() != "mysql", "Migration can only be executed safely on 'mysql'.");
|
||||
|
||||
|
Reference in New Issue
Block a user