migrations/Version20220915114722.php line 1
<?phpdeclare(strict_types=1);namespace DoctrineMigrations;use Doctrine\DBAL\Schema\Schema;use Doctrine\Migrations\AbstractMigration;/*** Auto-generated Migration: Please modify to your needs!*/final class Version20220915114722 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('CREATE TABLE rank_history (id UUID NOT NULL, owner_id UUID NOT NULL, rank INT NOT NULL, total INT NOT NULL, week INT NOT NULL, created_at TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL, updated_at TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL, PRIMARY KEY(id))');$this->addSql('CREATE INDEX IDX_536F5197E3C61F9 ON rank_history (owner_id)');$this->addSql('COMMENT ON COLUMN rank_history.id IS \'(DC2Type:uuid)\'');$this->addSql('COMMENT ON COLUMN rank_history.owner_id IS \'(DC2Type:uuid)\'');$this->addSql('ALTER TABLE rank_history ADD CONSTRAINT FK_536F5197E3C61F9 FOREIGN KEY (owner_id) REFERENCES "user" (id) NOT DEFERRABLE INITIALLY IMMEDIATE');$this->addSql('ALTER TABLE "user" ADD hidden BOOLEAN DEFAULT true NOT NULL');}public function down(Schema $schema): void{// this down() migration is auto-generated, please modify it to your needs$this->addSql('DROP TABLE rank_history');$this->addSql('ALTER TABLE "user" DROP hidden');}}