Add jail's status + directorys history admin

This commit is contained in:
Xbird
2022-09-11 15:33:37 +00:00
parent 59c8fa4aa8
commit 1a52a91d7e
11 changed files with 108 additions and 1 deletions

View File

@@ -0,0 +1,33 @@
<?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 Version20220910184058 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE jail ADD status VARCHAR(255) NOT NULL');
$this->addSql('UPDATE jail SET status = "🔴 To do"');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE jail DROP status');
}
}