Files
Mangarr/migrations/Version20240721190312.php
Jérémy Guillot c56f72b813 Added:
- toogle chapter visibility
- delete chapter cbz
- preferred ContentSource.php and modal
- minor fixes
2024-07-21 22:21:04 +02:00

33 lines
823 B
PHP

<?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 Version20240721190312 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 chapter ADD visible BOOLEAN NOT NULL DEFAULT TRUE');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE SCHEMA public');
$this->addSql('ALTER TABLE chapter DROP visible');
}
}