-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Persist additional client details ingested from the LayDeputyReport csv
- Loading branch information
1 parent
d0ad3ab
commit c70c44b
Showing
10 changed files
with
369 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?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 Version285 extends AbstractMigration | ||
{ | ||
public function getDescription(): string | ||
{ | ||
return 'Adds columns to store the new client data from the daily import'; | ||
} | ||
|
||
public function up(Schema $schema): void | ||
{ | ||
// this up() migration is auto-generated, please modify it to your needs | ||
$this->addSql('ALTER TABLE pre_registration ADD client_firstname VARCHAR(50) NOT NULL'); | ||
$this->addSql('ALTER TABLE pre_registration ADD client_address_1 VARCHAR(255) DEFAULT NULL'); | ||
$this->addSql('ALTER TABLE pre_registration ADD client_address_2 VARCHAR(255) DEFAULT NULL'); | ||
$this->addSql('ALTER TABLE pre_registration ADD client_address_3 VARCHAR(255) DEFAULT NULL'); | ||
$this->addSql('ALTER TABLE pre_registration ADD client_address_4 VARCHAR(255) DEFAULT NULL'); | ||
$this->addSql('ALTER TABLE pre_registration ADD client_address_5 VARCHAR(255) DEFAULT NULL'); | ||
$this->addSql('ALTER TABLE pre_registration ADD client_postcode VARCHAR(255) DEFAULT NULL'); | ||
} | ||
|
||
public function down(Schema $schema): void | ||
{ | ||
// this down() migration is auto-generated, please modify it to your needs | ||
$this->addSql('ALTER TABLE pre_registration DROP client_firstname'); | ||
$this->addSql('ALTER TABLE pre_registration DROP client_address_1'); | ||
$this->addSql('ALTER TABLE pre_registration DROP client_address_2'); | ||
$this->addSql('ALTER TABLE pre_registration DROP client_address_3'); | ||
$this->addSql('ALTER TABLE pre_registration DROP client_address_4'); | ||
$this->addSql('ALTER TABLE pre_registration DROP client_address_5'); | ||
$this->addSql('ALTER TABLE pre_registration DROP client_postcode'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.