The migrate sql still remaining after remove migrate php file.
After run migrate db I want to remove this file form source code because this logic is not necessary. But when I run this command to double check what will be execute. Any idea, please help.
bin/console doctrine:schema:update --dump-sql
The migrate alter table still remaining:
ALTER TABLE categories ALTER status SET NOT NULL
Migration file php:
namespace Doctrine\Migrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20220601122421 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE categories ALTER status SET NOT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE categories ALTER status DROP NOT NULL');
}
}