migrations/Version20210925214354.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 Version20210925214354 extends AbstractMigration{public function getDescription(): string{return 'alter user table new column';}public function up(Schema $schema): void{// this up() migration is auto-generated, please modify it to your needs$this->addSql('ALTER TABLE user ADD firstname VARCHAR(100) DEFAULT NULL, ADD lastname VARCHAR(100) DEFAULT NULL, ADD ps_id INT DEFAULT NULL, ADD id_card VARCHAR(255) DEFAULT NULL, ADD iban VARCHAR(255) DEFAULT NULL, ADD bic VARCHAR(255) DEFAULT NULL, ADD rib VARCHAR(255) DEFAULT NULL, ADD create_at DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL');}public function down(Schema $schema): void{// this down() migration is auto-generated, please modify it to your needs$this->addSql('ALTER TABLE `user` DROP firstname, DROP lastname, DROP ps_id, DROP id_card, DROP iban, DROP bic, DROP rib, DROP create_at');}}