Zeiterfassung Urlaubstage

neue Migrations

Vorbereitung für Logging von versendeten SMSen und Mails zweck rate Limit
This commit is contained in:
Spitzer Daniel
2024-01-14 13:16:54 +01:00
parent a4aaea2fb0
commit c779a533b2
11 changed files with 1620 additions and 1 deletions
@@ -0,0 +1,36 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class TimerecordingEmployee extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table("TimerecordingEmployee", ["signed" => true]);
$table->addColumn("user_id", "integer", ["null" => false]);
$table->addColumn("auto_workinghours", "integer", ["null" => false, "default" => "0"]);
$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("TimerecordingEmployee")->drop()->save();
}
if($this->getEnvironment() == "addressdb") {
}
}
}