Fixed pop network migration
This commit is contained in:
@@ -16,6 +16,8 @@ final class PopNetwork extends AbstractMigration
|
|||||||
$popnetwork->addColumn("create", "integer", ["null" => false]);
|
$popnetwork->addColumn("create", "integer", ["null" => false]);
|
||||||
$popnetwork->addColumn("edit", "integer", ["null" => false]);
|
$popnetwork->addColumn("edit", "integer", ["null" => false]);
|
||||||
$popnetwork->save();
|
$popnetwork->save();
|
||||||
|
|
||||||
|
$this->table("Pop")->changeColumn("network_id", "integer", ["null" => true, "default" => null])->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
if($this->getEnvironment() == "addressdb") {
|
if($this->getEnvironment() == "addressdb") {
|
||||||
@@ -26,6 +28,7 @@ final class PopNetwork extends AbstractMigration
|
|||||||
public function down(): void
|
public function down(): void
|
||||||
{
|
{
|
||||||
if($this->getEnvironment() == "thetool") {
|
if($this->getEnvironment() == "thetool") {
|
||||||
|
$this->table("Pop")->changeColumn("network_id", "integer", ["null" => false])->save();
|
||||||
$this->table("PopNetwork")->drop()->save();
|
$this->table("PopNetwork")->drop()->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user