<?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 Version20220629211314 extends AbstractMigration
{
public function getDescription(): string
{
return 'Sponsor Totals';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE sponsor ADD total_creators BIGINT UNSIGNED DEFAULT 0 NOT NULL, ADD total_videos BIGINT UNSIGNED DEFAULT 0 NOT NULL, ADD total_views BIGINT UNSIGNED DEFAULT 0 NOT NULL, ADD total_price DOUBLE PRECISION DEFAULT \'0\' NOT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE sponsor DROP total_creators, DROP total_videos, DROP total_views, DROP total_price');
}
public function isTransactional(): bool
{
return false;
}
}