Add new migration
This commit is contained in:
parent
24877f51af
commit
a38e63add9
33
migrations/Version20241205035323.php
Normal file
33
migrations/Version20241205035323.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace DoctrineMigrations;
|
||||
|
||||
use Doctrine\DBAL\Schema\Schema;
|
||||
use Doctrine\Migrations\AbstractMigration;
|
||||
|
||||
/**
|
||||
* Auto-generated Migration: Please modify to your needs!
|
||||
*/
|
||||
final class Version20241205035323 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 referral_source (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', agency VARCHAR(10) NOT NULL, name VARCHAR(255) NOT NULL, email VARCHAR(255) NOT NULL, phone VARCHAR(15) DEFAULT NULL, county VARCHAR(100) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
|
||||
$this->addSql('ALTER TABLE member_case DROP hours, DROP end_date, DROP referral_number, CHANGE country county VARCHAR(45) DEFAULT NULL');
|
||||
}
|
||||
|
||||
public function down(Schema $schema): void
|
||||
{
|
||||
// this down() migration is auto-generated, please modify it to your needs
|
||||
$this->addSql('DROP TABLE referral_source');
|
||||
$this->addSql('ALTER TABLE member_case ADD hours DOUBLE PRECISION NOT NULL, ADD end_date DATE NOT NULL, ADD referral_number VARCHAR(45) NOT NULL, CHANGE county country VARCHAR(45) DEFAULT NULL');
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user