Merge branch 'spidev' into 'master'
Zeiterfassung neues Feature: See merge request fronk/thetool!1088
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
use Phinx\Migration\AbstractMigration;
|
||||
|
||||
final class TimerecordingCarDocuments extends AbstractMigration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
if ($this->getEnvironment() == "thetool") {
|
||||
$table = $this->table("TimerecordingCarDocuments", ["signed" => true]);
|
||||
$table->addColumn("file_id", "integer", ["null" => false]);
|
||||
$table->addColumn("file_size", "integer", ["null" => false]);
|
||||
$table->addColumn("timerecordingCar_id", "integer", ["null" => false]);
|
||||
$table->addColumn("name", "string", ["null" => false]);
|
||||
$table->addColumn("description", "text", ["null" => true]);
|
||||
$table->addColumn("sort", "integer", ["null" => true]);
|
||||
$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->save();
|
||||
}
|
||||
|
||||
if ($this->getEnvironment() == "addressdb") {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
if ($this->getEnvironment() == "thetool") {
|
||||
$this->table("TimerecordingCarDocuments")->drop()->save();
|
||||
}
|
||||
|
||||
if ($this->getEnvironment() == "addressdb") {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user