Fixed some migrations
This commit is contained in:
@@ -5,7 +5,12 @@ use Phinx\Migration\AbstractMigration;
|
||||
final class WarehouseModify10 extends AbstractMigration {
|
||||
public function up(): void {
|
||||
if ($this->getEnvironment() == "thetool") {
|
||||
// Drop the existing tables
|
||||
// Remove foreign keys and drop the existing tables
|
||||
$this->table("WarehouseOrderItem")
|
||||
->dropForeignKey("orderId")
|
||||
->dropForeignKey("articleId")
|
||||
->update();
|
||||
|
||||
$this->table("WarehouseOrder")->drop()->save();
|
||||
$this->table("WarehouseOrderItem")->drop()->save();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user