4
0
mirror of https://github.com/AzuraCast/AzuraCast.git synced 2024-06-13 20:56:36 +00:00
AzuraCast/src/Entity/Migration/Version20181025232600.php
2020-10-14 17:19:31 -05:00

27 lines
723 B
PHP

<?php
declare(strict_types=1);
namespace App\Entity\Migration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Add reactivate_at to station_streamers table
*/
final class Version20181025232600 extends AbstractMigration
{
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE station ADD disconnect_deactivate_streamer INT DEFAULT 0');
$this->addSql('ALTER TABLE station_streamers ADD reactivate_at INT DEFAULT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE station_streamers DROP reactivate_at');
$this->addSql('ALTER TABLE station DROP disconnect_deactivate_streamer');
}
}