mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Move migrations directory to src
This commit is contained in:
parent
2c68224e9c
commit
00756a3bde
@ -1,12 +1,12 @@
|
|||||||
<?php declare(strict_types=1);
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace Application\Migrations;
|
namespace Chill\Migrations\Job;
|
||||||
|
|
||||||
use Doctrine\DBAL\Schema\Schema;
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
use Doctrine\Migrations\AbstractMigration;
|
use Doctrine\Migrations\AbstractMigration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add schema chill_csconnectes & table cs_person inside
|
* Add schema chill_csconnectes & table cs_person inside
|
||||||
*/
|
*/
|
||||||
final class Version20191119172511 extends AbstractMigration
|
final class Version20191119172511 extends AbstractMigration
|
||||||
{
|
{
|
||||||
@ -16,46 +16,46 @@ final class Version20191119172511 extends AbstractMigration
|
|||||||
|
|
||||||
$this->addSql('CREATE SCHEMA chill_csconnectes');
|
$this->addSql('CREATE SCHEMA chill_csconnectes');
|
||||||
$this->addSql('CREATE TABLE chill_csconnectes.cs_person (
|
$this->addSql('CREATE TABLE chill_csconnectes.cs_person (
|
||||||
id INT NOT NULL,
|
id INT NOT NULL,
|
||||||
person_id INT NOT NULL,
|
person_id INT NOT NULL,
|
||||||
prescripteur_id INT DEFAULT NULL,
|
prescripteur_id INT DEFAULT NULL,
|
||||||
situationLogement VARCHAR(255) DEFAULT NULL,
|
situationLogement VARCHAR(255) DEFAULT NULL,
|
||||||
enfantACharge INT DEFAULT NULL,
|
enfantACharge INT DEFAULT NULL,
|
||||||
niveauMaitriseLangue JSONB DEFAULT NULL,
|
niveauMaitriseLangue JSONB DEFAULT NULL,
|
||||||
vehiculePersonnel BOOLEAN DEFAULT NULL,
|
vehiculePersonnel BOOLEAN DEFAULT NULL,
|
||||||
permisConduire JSONB DEFAULT NULL,
|
permisConduire JSONB DEFAULT NULL,
|
||||||
situationProfessionnelle VARCHAR(255) DEFAULT NULL,
|
situationProfessionnelle VARCHAR(255) DEFAULT NULL,
|
||||||
dateFinDernierEmploi DATE DEFAULT NULL,
|
dateFinDernierEmploi DATE DEFAULT NULL,
|
||||||
typeContrat JSONB DEFAULT NULL,
|
typeContrat JSONB DEFAULT NULL,
|
||||||
ressources JSONB DEFAULT NULL,
|
ressources JSONB DEFAULT NULL,
|
||||||
ressourcesComment TEXT DEFAULT NULL,
|
ressourcesComment TEXT DEFAULT NULL,
|
||||||
ressourceDate1Versement DATE DEFAULT NULL,
|
ressourceDate1Versement DATE DEFAULT NULL,
|
||||||
CPFNombreHeures INT DEFAULT NULL,
|
CPFNombreHeures INT DEFAULT NULL,
|
||||||
accompagnement JSONB DEFAULT NULL,
|
accompagnement JSONB DEFAULT NULL,
|
||||||
accompagnementRQTHDate DATE DEFAULT NULL,
|
accompagnementRQTHDate DATE DEFAULT NULL,
|
||||||
accompagnementComment VARCHAR(255) DEFAULT NULL,
|
accompagnementComment VARCHAR(255) DEFAULT NULL,
|
||||||
poleEmploiId VARCHAR(255) DEFAULT NULL,
|
poleEmploiId VARCHAR(255) DEFAULT NULL,
|
||||||
poleEmploiInscriptionDate DATE DEFAULT NULL,
|
poleEmploiInscriptionDate DATE DEFAULT NULL,
|
||||||
cafId VARCHAR(255) DEFAULT NULL,
|
cafId VARCHAR(255) DEFAULT NULL,
|
||||||
cafInscriptionDate DATE DEFAULT NULL,
|
cafInscriptionDate DATE DEFAULT NULL,
|
||||||
CERInscriptionDate DATE DEFAULT NULL,
|
CERInscriptionDate DATE DEFAULT NULL,
|
||||||
PPAEInscriptionDate DATE DEFAULT NULL,
|
PPAEInscriptionDate DATE DEFAULT NULL,
|
||||||
NEETEligibilite BOOLEAN DEFAULT NULL,
|
NEETEligibilite BOOLEAN DEFAULT NULL,
|
||||||
NEETCommissionDate DATE DEFAULT NULL,
|
NEETCommissionDate DATE DEFAULT NULL,
|
||||||
FSEMaDemarcheCode TEXT DEFAULT NULL,
|
FSEMaDemarcheCode TEXT DEFAULT NULL,
|
||||||
documentCV_id INT DEFAULT NULL,
|
documentCV_id INT DEFAULT NULL,
|
||||||
documentAgrementIAE_id INT DEFAULT NULL,
|
documentAgrementIAE_id INT DEFAULT NULL,
|
||||||
documentRQTH_id INT DEFAULT NULL,
|
documentRQTH_id INT DEFAULT NULL,
|
||||||
documentAttestationNEET_id INT DEFAULT NULL,
|
documentAttestationNEET_id INT DEFAULT NULL,
|
||||||
documentCI_id INT DEFAULT NULL,
|
documentCI_id INT DEFAULT NULL,
|
||||||
documentTitreSejour_id INT DEFAULT NULL,
|
documentTitreSejour_id INT DEFAULT NULL,
|
||||||
documentAttestationFiscale_id INT DEFAULT NULL,
|
documentAttestationFiscale_id INT DEFAULT NULL,
|
||||||
documentPermis_id INT DEFAULT NULL,
|
documentPermis_id INT DEFAULT NULL,
|
||||||
documentAttestationCAAF_id INT DEFAULT NULL,
|
documentAttestationCAAF_id INT DEFAULT NULL,
|
||||||
documentContraTravail_id INT DEFAULT NULL,
|
documentContraTravail_id INT DEFAULT NULL,
|
||||||
documentAttestationFormation_id INT DEFAULT NULL,
|
documentAttestationFormation_id INT DEFAULT NULL,
|
||||||
documentQuittanceLoyer_id INT DEFAULT NULL,
|
documentQuittanceLoyer_id INT DEFAULT NULL,
|
||||||
documentFactureElectricite_id INT DEFAULT NULL,
|
documentFactureElectricite_id INT DEFAULT NULL,
|
||||||
PRIMARY KEY(id, person_id))');
|
PRIMARY KEY(id, person_id))');
|
||||||
$this->addSql('CREATE INDEX IDX_10864F31217BBB47 ON chill_csconnectes.cs_person (person_id)');
|
$this->addSql('CREATE INDEX IDX_10864F31217BBB47 ON chill_csconnectes.cs_person (person_id)');
|
||||||
$this->addSql('CREATE INDEX IDX_10864F3154866550 ON chill_csconnectes.cs_person (documentCV_id)');
|
$this->addSql('CREATE INDEX IDX_10864F3154866550 ON chill_csconnectes.cs_person (documentCV_id)');
|
||||||
@ -92,7 +92,7 @@ final class Version20191119172511 extends AbstractMigration
|
|||||||
$this->addSql('COMMENT ON COLUMN chill_csconnectes.cs_person.typeContrat IS NULL');
|
$this->addSql('COMMENT ON COLUMN chill_csconnectes.cs_person.typeContrat IS NULL');
|
||||||
$this->addSql('COMMENT ON COLUMN chill_csconnectes.cs_person.ressources IS NULL');
|
$this->addSql('COMMENT ON COLUMN chill_csconnectes.cs_person.ressources IS NULL');
|
||||||
$this->addSql('COMMENT ON COLUMN chill_csconnectes.cs_person.accompagnement IS NULL');
|
$this->addSql('COMMENT ON COLUMN chill_csconnectes.cs_person.accompagnement IS NULL');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function down(Schema $schema) : void
|
public function down(Schema $schema) : void
|
@ -1,6 +1,6 @@
|
|||||||
<?php declare(strict_types=1);
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace Application\Migrations;
|
namespace Chill\Migrations\Job;
|
||||||
|
|
||||||
use Doctrine\DBAL\Schema\Schema;
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
use Doctrine\Migrations\AbstractMigration;
|
use Doctrine\Migrations\AbstractMigration;
|
@ -1,6 +1,6 @@
|
|||||||
<?php declare(strict_types=1);
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace Application\Migrations;
|
namespace Chill\Migrations\Job;
|
||||||
|
|
||||||
use Doctrine\DBAL\Schema\Schema;
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
use Doctrine\Migrations\AbstractMigration;
|
use Doctrine\Migrations\AbstractMigration;
|
@ -1,6 +1,6 @@
|
|||||||
<?php declare(strict_types=1);
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace Application\Migrations;
|
namespace Chill\Migrations\Job;
|
||||||
|
|
||||||
use Doctrine\DBAL\Schema\Schema;
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
use Doctrine\Migrations\AbstractMigration;
|
use Doctrine\Migrations\AbstractMigration;
|
@ -1,13 +1,13 @@
|
|||||||
<?php declare(strict_types=1);
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace Application\Migrations;
|
namespace Chill\Migrations\Job;
|
||||||
|
|
||||||
use Doctrine\DBAL\Schema\Schema;
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
use Doctrine\Migrations\AbstractMigration;
|
use Doctrine\Migrations\AbstractMigration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ajout colonnes manquantes à Immersion:
|
* Ajout colonnes manquantes à Immersion:
|
||||||
*
|
*
|
||||||
* - is bilan fullfilled ;
|
* - is bilan fullfilled ;
|
||||||
* - savoir être notes
|
* - savoir être notes
|
||||||
*/
|
*/
|
@ -1,6 +1,6 @@
|
|||||||
<?php declare(strict_types=1);
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace Application\Migrations;
|
namespace Chill\Migrations\Job;
|
||||||
|
|
||||||
use Doctrine\DBAL\Schema\Schema;
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
use Doctrine\Migrations\AbstractMigration;
|
use Doctrine\Migrations\AbstractMigration;
|
@ -1,6 +1,6 @@
|
|||||||
<?php declare(strict_types=1);
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace Application\Migrations;
|
namespace Chill\Migrations\Job;
|
||||||
|
|
||||||
use Doctrine\DBAL\Schema\Schema;
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
use Doctrine\Migrations\AbstractMigration;
|
use Doctrine\Migrations\AbstractMigration;
|
@ -1,6 +1,6 @@
|
|||||||
<?php declare(strict_types=1);
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace Application\Migrations;
|
namespace Chill\Migrations\Job;
|
||||||
|
|
||||||
use Doctrine\DBAL\Schema\Schema;
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
use Doctrine\Migrations\AbstractMigration;
|
use Doctrine\Migrations\AbstractMigration;
|
||||||
@ -20,8 +20,8 @@ final class Version20200127132932 extends AbstractMigration
|
|||||||
public function down(Schema $schema) : void
|
public function down(Schema $schema) : void
|
||||||
{
|
{
|
||||||
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.');
|
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.');
|
||||||
|
|
||||||
$this->addSql('ALTER TABLE chill_csconnectes.immersion DROP objectifsAutre');
|
$this->addSql('ALTER TABLE chill_csconnectes.immersion DROP objectifsAutre');
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,6 +1,6 @@
|
|||||||
<?php declare(strict_types=1);
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace Application\Migrations;
|
namespace Chill\Migrations\Job;
|
||||||
|
|
||||||
use Doctrine\DBAL\Schema\Schema;
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
use Doctrine\Migrations\AbstractMigration;
|
use Doctrine\Migrations\AbstractMigration;
|
||||||
@ -49,7 +49,7 @@ final class Version20200205132532 extends AbstractMigration
|
|||||||
$this->addSql('ALTER TABLE chill_csconnectes.projetprofessionnel_valide ADD CONSTRAINT FK_E0501BE0B87BF7B5 FOREIGN KEY (projetprofessionnel_id) REFERENCES chill_csconnectes.projet_professionnel (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
|
$this->addSql('ALTER TABLE chill_csconnectes.projetprofessionnel_valide ADD CONSTRAINT FK_E0501BE0B87BF7B5 FOREIGN KEY (projetprofessionnel_id) REFERENCES chill_csconnectes.projet_professionnel (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
|
||||||
$this->addSql('ALTER TABLE chill_csconnectes.projetprofessionnel_valide ADD CONSTRAINT FK_E0501BE07CDE30DD FOREIGN KEY (appellation_id) REFERENCES chill_csconnectes.rome_appellation (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
|
$this->addSql('ALTER TABLE chill_csconnectes.projetprofessionnel_valide ADD CONSTRAINT FK_E0501BE07CDE30DD FOREIGN KEY (appellation_id) REFERENCES chill_csconnectes.rome_appellation (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE');
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function down(Schema $schema) : void
|
public function down(Schema $schema) : void
|
||||||
@ -70,7 +70,7 @@ final class Version20200205132532 extends AbstractMigration
|
|||||||
$this->addSql('DROP TABLE chill_csconnectes.projet_professionnel');
|
$this->addSql('DROP TABLE chill_csconnectes.projet_professionnel');
|
||||||
$this->addSql('DROP TABLE chill_csconnectes.projetprofessionnel_souhait');
|
$this->addSql('DROP TABLE chill_csconnectes.projetprofessionnel_souhait');
|
||||||
$this->addSql('DROP TABLE chill_csconnectes.projetprofessionnel_valide');
|
$this->addSql('DROP TABLE chill_csconnectes.projetprofessionnel_valide');
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,6 +1,6 @@
|
|||||||
<?php declare(strict_types=1);
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace Application\Migrations;
|
namespace Chill\Migrations\Job;
|
||||||
|
|
||||||
use Doctrine\DBAL\Schema\Schema;
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
use Doctrine\Migrations\AbstractMigration;
|
use Doctrine\Migrations\AbstractMigration;
|
@ -1,6 +1,6 @@
|
|||||||
<?php declare(strict_types=1);
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace Application\Migrations;
|
namespace Chill\Migrations\Job;
|
||||||
|
|
||||||
use Doctrine\DBAL\Schema\Schema;
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
use Doctrine\Migrations\AbstractMigration;
|
use Doctrine\Migrations\AbstractMigration;
|
@ -1,6 +1,6 @@
|
|||||||
<?php declare(strict_types=1);
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace Application\Migrations;
|
namespace Chill\Migrations\Job;
|
||||||
|
|
||||||
use Doctrine\DBAL\Schema\Schema;
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
use Doctrine\Migrations\AbstractMigration;
|
use Doctrine\Migrations\AbstractMigration;
|
@ -1,6 +1,6 @@
|
|||||||
<?php declare(strict_types=1);
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace Application\Migrations;
|
namespace Chill\Migrations\Job;
|
||||||
|
|
||||||
use Doctrine\DBAL\Schema\Schema;
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
use Doctrine\Migrations\AbstractMigration;
|
use Doctrine\Migrations\AbstractMigration;
|
@ -1,6 +1,6 @@
|
|||||||
<?php declare(strict_types=1);
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace Application\Migrations;
|
namespace Chill\Migrations\Job;
|
||||||
|
|
||||||
use Doctrine\DBAL\Schema\Schema;
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
use Doctrine\Migrations\AbstractMigration;
|
use Doctrine\Migrations\AbstractMigration;
|
Loading…
x
Reference in New Issue
Block a user