Skip to content

Commit

Permalink
alter table needs to be run for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mrothauer committed Nov 22, 2023
1 parent 7919add commit ea0c79c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
1 change: 0 additions & 1 deletion config/Migrations/20231114122353_InfoSheetAdaption.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ public function change(): void
{
$this->execute("INSERT INTO `form_field_options` (`id`, `form_field_id`, `value`, `name`, `rank`, `status`) VALUES (NULL, '3', '5', 'Fehler nicht gefunden', '50', '1');");
$this->execute("UPDATE `info_sheets` SET defect_found_reason = 5 WHERE defect_found = 0;");
$this->execute("ALTER TABLE `info_sheets` DROP `defect_found`;");
$this->execute("DELETE FROM `form_field_options` WHERE `form_field_options`.`id` = 6;");
$this->execute("DELETE FROM `form_field_options` WHERE `form_field_options`.`id` = 7;");
$this->execute("DELETE FROM `form_field_options_extra_infos` WHERE `form_field_options_extra_infos`.`id` = 17;");
Expand Down
12 changes: 12 additions & 0 deletions config/Migrations/20231122140314_InfoSheetAdaption2.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php
declare(strict_types=1);

use Migrations\AbstractMigration;

class InfoSheetAdaption2 extends AbstractMigration
{
public function change(): void
{
$this->execute("ALTER TABLE `info_sheets` DROP `defect_found`;");
}
}

0 comments on commit ea0c79c

Please sign in to comment.