feat: remove unused assignment status, rename 'open' to 'published'

This commit is contained in:
Björn Fromme
2024-06-23 18:48:42 +02:00
parent 4ac8f36589
commit 40a5fcc1fa
6 changed files with 34 additions and 15 deletions
+29
View File
@@ -0,0 +1,29 @@
<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20240623164458 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->connection->executeQuery('update assignment set status=? where status=?', ['published', 'open']);
}
public function down(Schema $schema): void
{
$this->connection->executeQuery('update assignment set status=? where status=?', ['open', 'published']);
}
}