Added sepa date
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
use Phinx\Migration\AbstractMigration;
|
||||
|
||||
final class CreateContractqueue extends AbstractMigration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
if($this->getEnvironment() == "thetool") {
|
||||
$table = $this->table("Contractqueue");
|
||||
$table->addColumn("approved", "integer", ["null" => false, "default" => 0]);
|
||||
$table->addColumn("contract_id", "integer", ["null" => true, "default" => null]);
|
||||
$table->addColumn("order_id", "integer", ["null" => false]);
|
||||
$table->addColumn("orderproduct_id", "integer", ["null" => true, "default" => null]);
|
||||
$table->addColumn("owner_id", "integer", ["null" => false]);
|
||||
$table->addColumn("billingaddress_id", "integer", ["null" => true, "default" => null]);
|
||||
$table->addColumn("termination_id", "integer", ["null" => true, "default" => null]);
|
||||
$table->addColumn("product_id", "integer", ["null" => true, "default" => null]);
|
||||
$table->addColumn("product_name", "string", ["null" => false, "limit" => 255]);
|
||||
$table->addColumn("product_info", "text", ["null" => true, "default" => null]);
|
||||
$table->addColumn("matchcode", "string", ["null" => true, "default" => null, "limit" => 255]);
|
||||
$table->addColumn("amount", "decimal", ["null" => false, "precision" => 9, "scale" => 6]);
|
||||
$table->addColumn("sla_id", "integer", ["null" => true, "default" => null]);
|
||||
$table->addColumn("product_external", "integer", ["null" => false, "default" => 0, "limit" => \Phinx\Db\Adapter\MysqlAdapter::INT_TINY]);
|
||||
$table->addColumn("product_external_id", "integer", ["null" => true, "default" => null]);
|
||||
$table->addColumn("price", "decimal", ["null" => false, "precision" => 14, "scale" => 4]);
|
||||
$table->addColumn("price_setup", "decimal", ["null" => false, "default" => 0, "precision" => 14, "scale" => 4]);
|
||||
$table->addColumn("price_nne", "decimal", ["null" => false, "default" => 0, "precision" => 14, "scale" => 4]);
|
||||
$table->addColumn("price_nbe", "decimal", ["null" => false, "default" => 0, "precision" => 14, "scale" => 4]);
|
||||
$table->addColumn("billing_delay", "integer", ["null" => false, "default" => 0]);
|
||||
$table->addColumn("billing_period", "integer", ["null" => false, "default" => 1]);
|
||||
$table->addColumn("order_date", "integer", ["null" => true, "default" => null]);
|
||||
$table->addColumn("finish_date", "integer", ["null" => true, "default" => null]);
|
||||
$table->addColumn("finish_date_by", "integer", ["null" => true, "default" => null]);
|
||||
$table->addColumn("cancel_date", "integer", ["null" => true, "default" => null]);
|
||||
$table->addColumn("cancel_date_by", "integer", ["null" => true, "default" => null]);
|
||||
$table->addColumn("imported_from", "string", ["null" => true, "default" => null, "limit" => 255]);
|
||||
$table->addColumn("imported_data", "string", ["null" => true, "default" => null, "limit" => 255]);
|
||||
$table->addColumn("note", "text", ["null" => true, "default" => null]);
|
||||
$table->addColumn("create_by", "integer", ["null" => false]);
|
||||
$table->addColumn("edit_by", "integer", ["null" => false]);
|
||||
$table->addColumn("create", "integer", ["null" => false]);
|
||||
$table->addColumn("edit", "integer", ["null" => false]);
|
||||
$table->create();
|
||||
}
|
||||
|
||||
if($this->getEnvironment() == "addressdb") {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
if($this->getEnvironment() == "thetool") {
|
||||
$table = $this->table("Contractqueue")->drop()->save();
|
||||
}
|
||||
|
||||
if($this->getEnvironment() == "addressdb") {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user