34 lines
731 B
PHP
34 lines
731 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Template\Migrations\Template;
|
|
|
|
use Doctrine\DBAL\Schema\Schema;
|
|
use Doctrine\Migrations\AbstractMigration;
|
|
|
|
/**
|
|
* Auto-generated Migration: Please modify to your needs!
|
|
*/
|
|
final class Version20231021103120 extends AbstractMigration
|
|
{
|
|
public function getDescription(): string
|
|
{
|
|
return 'drop password from registration';
|
|
}
|
|
|
|
public function up(Schema $schema): void
|
|
{
|
|
$sql = "ALTER TABLE registration DROP COLUMN password;";
|
|
|
|
$this->addSql($sql);
|
|
}
|
|
|
|
public function down(Schema $schema): void
|
|
{
|
|
$sql = "ALTER TABLE registration ADD COLUMN password varchar(255) NOT NULL after username";
|
|
|
|
$this->addSql($sql);
|
|
}
|
|
}
|