Skip to content

Commit 6069d19

Browse files
committed
follow up to #276
1 parent fd151be commit 6069d19

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace CustomerManagementFrameworkBundle\Migrations\PimcoreX;
6+
7+
use Doctrine\DBAL\Schema\Schema;
8+
use Doctrine\Migrations\AbstractMigration;
9+
10+
final class Version20220316141955 extends AbstractMigration
11+
{
12+
public function getDescription(): string
13+
{
14+
return '';
15+
}
16+
17+
public function up(Schema $schema): void
18+
{
19+
$this->addSql('SET foreign_key_checks = 0');
20+
$this->addSql('ALTER TABLE `plugin_cmf_deletions` DROP INDEX IF EXISTS `PRIMARY`;');
21+
$this->addSql('SET foreign_key_checks = 1');
22+
}
23+
24+
public function down(Schema $schema): void
25+
{
26+
// this down() migration is auto-generated, please modify it to your needs
27+
28+
}
29+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace CustomerManagementFrameworkBundle\Migrations;
6+
7+
use Doctrine\DBAL\Schema\Schema;
8+
use Doctrine\Migrations\AbstractMigration;
9+
10+
11+
final class Version20220316141955 extends AbstractMigration
12+
{
13+
public function up(Schema $schema): void
14+
{
15+
$this->addSql('SET foreign_key_checks = 0');
16+
$this->addSql('ALTER TABLE `plugin_cmf_deletions` DROP INDEX IF EXISTS `PRIMARY`;');
17+
$this->addSql('SET foreign_key_checks = 1');
18+
}
19+
20+
public function down(Schema $schema): void
21+
{
22+
// this down() migration is auto-generated, please modify it to your needs
23+
24+
}
25+
}

0 commit comments

Comments
 (0)