enhanced preorder map
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
use Phinx\Migration\AbstractMigration;
|
||||
|
||||
final class ModifyPreordercampaign2 extends AbstractMigration {
|
||||
public function up(): void {
|
||||
if ($this->getEnvironment() !== 'thetool') return;
|
||||
|
||||
$sql = "ALTER TABLE `Preorder` ADD INDEX `idx_adb_wohneinheit_id` (`adb_wohneinheit_id`)";
|
||||
$this->execute($sql);
|
||||
}
|
||||
|
||||
public function down(): void {
|
||||
if ($this->getEnvironment() !== 'thetool') return;
|
||||
|
||||
$sql = "ALTER TABLE `Preorder` DROP INDEX `idx_adb_wohneinheit_id`";
|
||||
$this->execute($sql);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user