Merge branch '1.11' into 1.12

* 1.11:
  [Migrations] Remove usage of non existent AbstractMigration
This commit is contained in:
Kevin Kaniaburka 2022-11-16 14:23:14 +01:00
commit fbb9984084
No known key found for this signature in database
GPG key ID: 8DB4C54474F3FD72
2 changed files with 10 additions and 2 deletions

View file

@ -14,17 +14,21 @@ declare(strict_types=1);
namespace Sylius\Migrations;
use Doctrine\DBAL\Schema\Schema;
use Sylius\Bundle\CoreBundle\Doctrine\Migrations\AbstractMigration;
use Doctrine\Migrations\AbstractMigration;
class Version20161209095131 extends AbstractMigration
{
public function up(Schema $schema): void
{
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql("UPDATE sylius_zone SET scope = 'all' WHERE scope IS NULL");
}
public function down(Schema $schema): void
{
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql("UPDATE sylius_zone SET scope = NULL WHERE scope = 'all'");
}
}

View file

@ -14,17 +14,21 @@ declare(strict_types=1);
namespace Sylius\Bundle\CoreBundle\Migrations;
use Doctrine\DBAL\Schema\Schema;
use Sylius\Bundle\CoreBundle\Doctrine\Migrations\AbstractMigration;
use Doctrine\Migrations\AbstractMigration;
class Version20161209095131 extends AbstractMigration
{
public function up(Schema $schema): void
{
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql("UPDATE sylius_zone SET scope = 'all' WHERE scope IS NULL");
}
public function down(Schema $schema): void
{
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql("UPDATE sylius_zone SET scope = NULL WHERE scope = 'all'");
}
}