File tree Expand file tree Collapse file tree 2 files changed +54
-0
lines changed
Expand file tree Collapse file tree 2 files changed +54
-0
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments