<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20220713155836 extends AbstractMigration
{
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE button CHANGE position position DOUBLE PRECISION DEFAULT NULL');
$this->addSql('ALTER TABLE category CHANGE position position DOUBLE PRECISION DEFAULT NULL');
$this->addSql('ALTER TABLE sub_category CHANGE position position DOUBLE PRECISION DEFAULT NULL');
$this->addSql('ALTER TABLE visiting_card CHANGE position position DOUBLE PRECISION DEFAULT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE button CHANGE position position INT DEFAULT NULL');
$this->addSql('ALTER TABLE category CHANGE position position INT DEFAULT NULL');
$this->addSql('ALTER TABLE sub_category CHANGE position position INT DEFAULT NULL');
$this->addSql('ALTER TABLE visiting_card CHANGE position position INT DEFAULT NULL');
}
}