Merge branch 'feature/RaspberryDisplay' into 'master'

created RasberryDisplay Module

See merge request fronk/thetool!245
This commit is contained in:
Frank Schubert
2024-02-14 12:41:35 +00:00
19 changed files with 12569 additions and 9 deletions
@@ -0,0 +1,41 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class AddRaspberryDisplayTable extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table('RaspberryDisplay');
$table->addColumn('display_label', 'string', ['limit' => 255])
->addColumn('hostname', 'string', ['limit' => 255])
->addColumn('ip_address', 'string', ['limit' => 15])
->addColumn('display_url', 'string', ['limit' => 255])
->addColumn('auto_refresh_enabled', 'boolean', ['default' => false])
->addColumn('margin_hot_fix_enabled', 'boolean', ['default' => false])
->addColumn('custom_style', 'string', ['limit' => 255, 'null' => true])
->addColumn('create', 'integer', ['null' => true])
->addColumn('edit', 'integer', ['null' => true])
->addColumn('create_by', 'integer', ['null' => true])
->addColumn('edit_by', 'integer', ['null' => true])
->create();
}
if($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
$this->table('RaspberryDisplay')->drop();
}
if($this->getEnvironment() == "addressdb") {
}
}
}