Commit d59db6ab by Damien Moulard

Plus de préfixes en base

parent eb4804e4
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
###< liip/imagine-bundle ### ###< liip/imagine-bundle ###
###> symfony/webpack-encore-bundle ### ###> symfony/webpack-encore-bundle ###
/node_modules/ /node_modules/
#/public/build/ /public/build/
npm-debug.log npm-debug.log
yarn-error.log yarn-error.log
/mlc.test-access.log /mlc.test-access.log
......
...@@ -3,4 +3,4 @@ doctrine_migrations: ...@@ -3,4 +3,4 @@ doctrine_migrations:
'DoctrineMigrations': '%kernel.project_dir%/src/Migrations' 'DoctrineMigrations': '%kernel.project_dir%/src/Migrations'
storage: storage:
table_storage: table_storage:
table_name: '%env(DATABASE_PREFIX)%migration_versions' table_name: 'migration_versions'
...@@ -56,11 +56,12 @@ services: ...@@ -56,11 +56,12 @@ services:
# please note that last definitions always *replace* previous ones # please note that last definitions always *replace* previous ones
# Définition du prefix pour les tables # Définition du prefix pour les tables
App\Doctrine\TablePrefix: # -> Préfixes abandonnés pour l'instant
arguments: # App\Doctrine\TablePrefix:
$prefix: '%env(string:DATABASE_PREFIX)%' # arguments:
tags: # $prefix: '%env(string:DATABASE_PREFIX)%'
- { name: doctrine.event_subscriber, connection: default } # tags:
# - { name: doctrine.event_subscriber, connection: default }
# cache doctrine for bazinga geocoder # cache doctrine for bazinga geocoder
mlc_cache_adapter: mlc_cache_adapter:
......
...@@ -2,20 +2,20 @@ ...@@ -2,20 +2,20 @@
"entrypoints": { "entrypoints": {
"app": { "app": {
"js": [ "js": [
"/build/runtime.420770e4.js", "/build/runtime.js",
"/build/app.a6090119.js" "/build/app.js"
], ],
"css": [ "css": [
"/build/app.b1a10d11.css" "/build/app.css"
] ]
}, },
"admin": { "admin": {
"js": [ "js": [
"/build/runtime.420770e4.js", "/build/runtime.js",
"/build/admin.da628ab6.js" "/build/admin.js"
], ],
"css": [ "css": [
"/build/admin.b8c3eca8.css" "/build/admin.css"
] ]
} }
} }
......
{ {
"build/admin.css": "/build/admin.b8c3eca8.css", "build/admin.css": "/build/admin.css",
"build/admin.js": "/build/admin.da628ab6.js", "build/admin.js": "/build/admin.js",
"build/app.css": "/build/app.b1a10d11.css", "build/app.css": "/build/app.css",
"build/app.js": "/build/app.a6090119.js", "build/app.js": "/build/app.js",
"build/runtime.js": "/build/runtime.420770e4.js", "build/runtime.js": "/build/runtime.js",
"build/ckeditor/adapters/jquery.js": "/build/ckeditor/adapters/jquery.js", "build/ckeditor/adapters/jquery.js": "/build/ckeditor/adapters/jquery.js",
"build/ckeditor/ckeditor.js": "/build/ckeditor/ckeditor.js", "build/ckeditor/ckeditor.js": "/build/ckeditor/ckeditor.js",
"build/ckeditor/config.js": "/build/ckeditor/config.js", "build/ckeditor/config.js": "/build/ckeditor/config.js",
......
...@@ -22,7 +22,7 @@ final class Version20200325154619 extends AbstractMigration ...@@ -22,7 +22,7 @@ final class Version20200325154619 extends AbstractMigration
// this up() migration is auto-generated, please modify it to your needs // this up() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'prestataire CHANGE iban iban VARCHAR(100) DEFAULT NULL'); $this->addSql('ALTER TABLE prestataire CHANGE iban iban VARCHAR(100) DEFAULT NULL');
} }
public function down(Schema $schema) : void public function down(Schema $schema) : void
...@@ -30,6 +30,6 @@ final class Version20200325154619 extends AbstractMigration ...@@ -30,6 +30,6 @@ final class Version20200325154619 extends AbstractMigration
// this down() migration is auto-generated, please modify it to your needs // this down() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'prestataire CHANGE iban iban VARCHAR(100) CHARACTER SET utf8 NOT NULL COLLATE `utf8_general_ci`'); $this->addSql('ALTER TABLE prestataire CHANGE iban iban VARCHAR(100) CHARACTER SET utf8 NOT NULL COLLATE `utf8_general_ci`');
} }
} }
...@@ -22,7 +22,7 @@ final class Version20200402130346 extends AbstractMigration ...@@ -22,7 +22,7 @@ final class Version20200402130346 extends AbstractMigration
// this up() migration is auto-generated, please modify it to your needs // this up() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'flux ADD role VARCHAR(200) NOT NULL'); $this->addSql('ALTER TABLE flux ADD role VARCHAR(200) NOT NULL');
} }
public function down(Schema $schema) : void public function down(Schema $schema) : void
...@@ -30,6 +30,6 @@ final class Version20200402130346 extends AbstractMigration ...@@ -30,6 +30,6 @@ final class Version20200402130346 extends AbstractMigration
// this down() migration is auto-generated, please modify it to your needs // this down() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'flux DROP role'); $this->addSql('ALTER TABLE flux DROP role');
} }
} }
...@@ -22,7 +22,7 @@ final class Version20200402132651 extends AbstractMigration ...@@ -22,7 +22,7 @@ final class Version20200402132651 extends AbstractMigration
// this up() migration is auto-generated, please modify it to your needs // this up() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'flux ADD hash LONGTEXT NOT NULL'); $this->addSql('ALTER TABLE flux ADD hash LONGTEXT NOT NULL');
} }
public function down(Schema $schema) : void public function down(Schema $schema) : void
...@@ -30,6 +30,6 @@ final class Version20200402132651 extends AbstractMigration ...@@ -30,6 +30,6 @@ final class Version20200402132651 extends AbstractMigration
// this down() migration is auto-generated, please modify it to your needs // this down() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'flux DROP hash'); $this->addSql('ALTER TABLE flux DROP hash');
} }
} }
...@@ -22,10 +22,10 @@ final class Version20200403104008 extends AbstractMigration ...@@ -22,10 +22,10 @@ final class Version20200403104008 extends AbstractMigration
// this up() migration is auto-generated, please modify it to your needs // this up() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('CREATE TABLE '.$_ENV['DATABASE_PREFIX'].'etat_prestataire (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(150) NOT NULL, slug VARCHAR(150) NOT NULL, content LONGTEXT DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, enabled TINYINT(1) NOT NULL, UNIQUE INDEX UNIQ_DD6CC57989D9B62 (slug), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_general_ci` ENGINE = InnoDB'); $this->addSql('CREATE TABLE etat_prestataire (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(150) NOT NULL, slug VARCHAR(150) NOT NULL, content LONGTEXT DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, enabled TINYINT(1) NOT NULL, UNIQUE INDEX UNIQ_DD6CC57989D9B62 (slug), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_general_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE '.$_ENV['DATABASE_PREFIX'].'etats_prestataires (etat_prestataire_id INT NOT NULL, prestataire_id INT NOT NULL, INDEX IDX_5D68706574D12AB (etat_prestataire_id), INDEX IDX_5D687065BE3DB2B7 (prestataire_id), PRIMARY KEY(etat_prestataire_id, prestataire_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_general_ci` ENGINE = InnoDB'); $this->addSql('CREATE TABLE etats_prestataires (etat_prestataire_id INT NOT NULL, prestataire_id INT NOT NULL, INDEX IDX_5D68706574D12AB (etat_prestataire_id), INDEX IDX_5D687065BE3DB2B7 (prestataire_id), PRIMARY KEY(etat_prestataire_id, prestataire_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_general_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'etats_prestataires ADD CONSTRAINT FK_5D68706574D12AB FOREIGN KEY (etat_prestataire_id) REFERENCES '.$_ENV['DATABASE_PREFIX'].'etat_prestataire (id) ON DELETE CASCADE'); $this->addSql('ALTER TABLE etats_prestataires ADD CONSTRAINT FK_5D68706574D12AB FOREIGN KEY (etat_prestataire_id) REFERENCES etat_prestataire (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'etats_prestataires ADD CONSTRAINT FK_5D687065BE3DB2B7 FOREIGN KEY (prestataire_id) REFERENCES '.$_ENV['DATABASE_PREFIX'].'prestataire (id) ON DELETE CASCADE'); $this->addSql('ALTER TABLE etats_prestataires ADD CONSTRAINT FK_5D687065BE3DB2B7 FOREIGN KEY (prestataire_id) REFERENCES prestataire (id) ON DELETE CASCADE');
} }
public function down(Schema $schema) : void public function down(Schema $schema) : void
...@@ -33,8 +33,8 @@ final class Version20200403104008 extends AbstractMigration ...@@ -33,8 +33,8 @@ final class Version20200403104008 extends AbstractMigration
// this down() migration is auto-generated, please modify it to your needs // this down() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'etats_prestataires DROP FOREIGN KEY FK_5D68706574D12AB'); $this->addSql('ALTER TABLE etats_prestataires DROP FOREIGN KEY FK_5D68706574D12AB');
$this->addSql('DROP TABLE '.$_ENV['DATABASE_PREFIX'].'etat_prestataire'); $this->addSql('DROP TABLE etat_prestataire');
$this->addSql('DROP TABLE '.$_ENV['DATABASE_PREFIX'].'etats_prestataires'); $this->addSql('DROP TABLE etats_prestataires');
} }
} }
...@@ -22,12 +22,12 @@ final class Version20200406151406 extends AbstractMigration ...@@ -22,12 +22,12 @@ final class Version20200406151406 extends AbstractMigration
// this up() migration is auto-generated, please modify it to your needs // this up() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('CREATE TABLE '.$_ENV['DATABASE_PREFIX'].'geoloc_prestataire (id INT AUTO_INCREMENT NOT NULL, prestataire_id INT NOT NULL, geoloc_id INT DEFAULT NULL, name VARCHAR(150) NOT NULL, slug VARCHAR(150) NOT NULL, content LONGTEXT DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, enabled TINYINT(1) NOT NULL, UNIQUE INDEX UNIQ_7A6F2D1F989D9B62 (slug), INDEX IDX_7A6F2D1FBE3DB2B7 (prestataire_id), UNIQUE INDEX UNIQ_7A6F2D1FEF390162 (geoloc_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_general_ci` ENGINE = InnoDB'); $this->addSql('CREATE TABLE geoloc_prestataire (id INT AUTO_INCREMENT NOT NULL, prestataire_id INT NOT NULL, geoloc_id INT DEFAULT NULL, name VARCHAR(150) NOT NULL, slug VARCHAR(150) NOT NULL, content LONGTEXT DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, enabled TINYINT(1) NOT NULL, UNIQUE INDEX UNIQ_7A6F2D1F989D9B62 (slug), INDEX IDX_7A6F2D1FBE3DB2B7 (prestataire_id), UNIQUE INDEX UNIQ_7A6F2D1FEF390162 (geoloc_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_general_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'geoloc_prestataire ADD CONSTRAINT FK_7A6F2D1FBE3DB2B7 FOREIGN KEY (prestataire_id) REFERENCES '.$_ENV['DATABASE_PREFIX'].'prestataire (id)'); $this->addSql('ALTER TABLE geoloc_prestataire ADD CONSTRAINT FK_7A6F2D1FBE3DB2B7 FOREIGN KEY (prestataire_id) REFERENCES prestataire (id)');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'geoloc_prestataire ADD CONSTRAINT FK_7A6F2D1FEF390162 FOREIGN KEY (geoloc_id) REFERENCES '.$_ENV['DATABASE_PREFIX'].'geoloc (id)'); $this->addSql('ALTER TABLE geoloc_prestataire ADD CONSTRAINT FK_7A6F2D1FEF390162 FOREIGN KEY (geoloc_id) REFERENCES geoloc (id)');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'prestataire DROP FOREIGN KEY FK_60A26480EF390162'); $this->addSql('ALTER TABLE prestataire DROP FOREIGN KEY FK_60A26480EF390162');
$this->addSql('DROP INDEX UNIQ_60A26480EF390162 ON '.$_ENV['DATABASE_PREFIX'].'prestataire'); $this->addSql('DROP INDEX UNIQ_60A26480EF390162 ON prestataire');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'prestataire DROP geoloc_id'); $this->addSql('ALTER TABLE prestataire DROP geoloc_id');
} }
public function down(Schema $schema) : void public function down(Schema $schema) : void
...@@ -35,9 +35,9 @@ final class Version20200406151406 extends AbstractMigration ...@@ -35,9 +35,9 @@ final class Version20200406151406 extends AbstractMigration
// this down() migration is auto-generated, please modify it to your needs // this down() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('DROP TABLE '.$_ENV['DATABASE_PREFIX'].'geoloc_prestataire'); $this->addSql('DROP TABLE geoloc_prestataire');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'prestataire ADD geoloc_id INT DEFAULT NULL'); $this->addSql('ALTER TABLE prestataire ADD geoloc_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'prestataire ADD CONSTRAINT FK_60A26480EF390162 FOREIGN KEY (geoloc_id) REFERENCES '.$_ENV['DATABASE_PREFIX'].'geoloc (id)'); $this->addSql('ALTER TABLE prestataire ADD CONSTRAINT FK_60A26480EF390162 FOREIGN KEY (geoloc_id) REFERENCES geoloc (id)');
$this->addSql('CREATE UNIQUE INDEX UNIQ_60A26480EF390162 ON '.$_ENV['DATABASE_PREFIX'].'prestataire (geoloc_id)'); $this->addSql('CREATE UNIQUE INDEX UNIQ_60A26480EF390162 ON prestataire (geoloc_id)');
} }
} }
...@@ -22,8 +22,8 @@ final class Version20200406170822 extends AbstractMigration ...@@ -22,8 +22,8 @@ final class Version20200406170822 extends AbstractMigration
// this up() migration is auto-generated, please modify it to your needs // this up() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('CREATE TABLE '.$_ENV['DATABASE_PREFIX'].'contact_prestataire (id INT AUTO_INCREMENT NOT NULL, prestataire_id INT NOT NULL, name VARCHAR(150) NOT NULL, slug VARCHAR(150) NOT NULL, content LONGTEXT DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, enabled TINYINT(1) NOT NULL, UNIQUE INDEX UNIQ_E0EDB3E989D9B62 (slug), INDEX IDX_E0EDB3EBE3DB2B7 (prestataire_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_general_ci` ENGINE = InnoDB'); $this->addSql('CREATE TABLE contact_prestataire (id INT AUTO_INCREMENT NOT NULL, prestataire_id INT NOT NULL, name VARCHAR(150) NOT NULL, slug VARCHAR(150) NOT NULL, content LONGTEXT DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, enabled TINYINT(1) NOT NULL, UNIQUE INDEX UNIQ_E0EDB3E989D9B62 (slug), INDEX IDX_E0EDB3EBE3DB2B7 (prestataire_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_general_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'contact_prestataire ADD CONSTRAINT FK_E0EDB3EBE3DB2B7 FOREIGN KEY (prestataire_id) REFERENCES '.$_ENV['DATABASE_PREFIX'].'prestataire (id)'); $this->addSql('ALTER TABLE contact_prestataire ADD CONSTRAINT FK_E0EDB3EBE3DB2B7 FOREIGN KEY (prestataire_id) REFERENCES prestataire (id)');
} }
public function down(Schema $schema) : void public function down(Schema $schema) : void
...@@ -31,6 +31,6 @@ final class Version20200406170822 extends AbstractMigration ...@@ -31,6 +31,6 @@ final class Version20200406170822 extends AbstractMigration
// this down() migration is auto-generated, please modify it to your needs // this down() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('DROP TABLE '.$_ENV['DATABASE_PREFIX'].'contact_prestataire'); $this->addSql('DROP TABLE contact_prestataire');
} }
} }
...@@ -22,9 +22,9 @@ final class Version20200408160435 extends AbstractMigration ...@@ -22,9 +22,9 @@ final class Version20200408160435 extends AbstractMigration
// this up() migration is auto-generated, please modify it to your needs // this up() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'rubrique ADD media_id INT DEFAULT NULL'); $this->addSql('ALTER TABLE rubrique ADD media_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'rubrique ADD CONSTRAINT FK_8FA4097CEA9FDD75 FOREIGN KEY (media_id) REFERENCES '.$_ENV['DATABASE_PREFIX'].'media__media (id)'); $this->addSql('ALTER TABLE rubrique ADD CONSTRAINT FK_8FA4097CEA9FDD75 FOREIGN KEY (media_id) REFERENCES media__media (id)');
$this->addSql('CREATE INDEX IDX_8FA4097CEA9FDD75 ON '.$_ENV['DATABASE_PREFIX'].'rubrique (media_id)'); $this->addSql('CREATE INDEX IDX_8FA4097CEA9FDD75 ON rubrique (media_id)');
} }
public function down(Schema $schema) : void public function down(Schema $schema) : void
...@@ -32,8 +32,8 @@ final class Version20200408160435 extends AbstractMigration ...@@ -32,8 +32,8 @@ final class Version20200408160435 extends AbstractMigration
// this down() migration is auto-generated, please modify it to your needs // this down() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'rubrique DROP FOREIGN KEY FK_8FA4097CEA9FDD75'); $this->addSql('ALTER TABLE rubrique DROP FOREIGN KEY FK_8FA4097CEA9FDD75');
$this->addSql('DROP INDEX IDX_8FA4097CEA9FDD75 ON '.$_ENV['DATABASE_PREFIX'].'rubrique'); $this->addSql('DROP INDEX IDX_8FA4097CEA9FDD75 ON rubrique');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'rubrique DROP media_id'); $this->addSql('ALTER TABLE rubrique DROP media_id');
} }
} }
...@@ -22,19 +22,19 @@ final class Version20200421145001 extends AbstractMigration ...@@ -22,19 +22,19 @@ final class Version20200421145001 extends AbstractMigration
// this up() migration is auto-generated, please modify it to your needs // this up() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('CREATE TABLE '.$_ENV['DATABASE_PREFIX'].'classification__collection (id INT AUTO_INCREMENT NOT NULL, context VARCHAR(255) DEFAULT NULL, media_id INT DEFAULT NULL, name VARCHAR(255) NOT NULL, enabled TINYINT(1) NOT NULL, slug VARCHAR(255) NOT NULL, description VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX IDX_A406B56AE25D857E (context), INDEX IDX_A406B56AEA9FDD75 (media_id), UNIQUE INDEX tag_collection (slug, context), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_general_ci` ENGINE = InnoDB'); $this->addSql('CREATE TABLE classification__collection (id INT AUTO_INCREMENT NOT NULL, context VARCHAR(255) DEFAULT NULL, media_id INT DEFAULT NULL, name VARCHAR(255) NOT NULL, enabled TINYINT(1) NOT NULL, slug VARCHAR(255) NOT NULL, description VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX IDX_A406B56AE25D857E (context), INDEX IDX_A406B56AEA9FDD75 (media_id), UNIQUE INDEX tag_collection (slug, context), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_general_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE '.$_ENV['DATABASE_PREFIX'].'classification__category (id INT AUTO_INCREMENT NOT NULL, parent_id INT DEFAULT NULL, context VARCHAR(255) DEFAULT NULL, media_id INT DEFAULT NULL, name VARCHAR(255) NOT NULL, enabled TINYINT(1) NOT NULL, slug VARCHAR(255) NOT NULL, description VARCHAR(255) DEFAULT NULL, position INT DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX IDX_43629B36727ACA70 (parent_id), INDEX IDX_43629B36E25D857E (context), INDEX IDX_43629B36EA9FDD75 (media_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_general_ci` ENGINE = InnoDB'); $this->addSql('CREATE TABLE classification__category (id INT AUTO_INCREMENT NOT NULL, parent_id INT DEFAULT NULL, context VARCHAR(255) DEFAULT NULL, media_id INT DEFAULT NULL, name VARCHAR(255) NOT NULL, enabled TINYINT(1) NOT NULL, slug VARCHAR(255) NOT NULL, description VARCHAR(255) DEFAULT NULL, position INT DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX IDX_43629B36727ACA70 (parent_id), INDEX IDX_43629B36E25D857E (context), INDEX IDX_43629B36EA9FDD75 (media_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_general_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE '.$_ENV['DATABASE_PREFIX'].'classification__tag (id INT AUTO_INCREMENT NOT NULL, context VARCHAR(255) DEFAULT NULL, name VARCHAR(255) NOT NULL, enabled TINYINT(1) NOT NULL, slug VARCHAR(255) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX IDX_CA57A1C7E25D857E (context), UNIQUE INDEX tag_context (slug, context), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_general_ci` ENGINE = InnoDB'); $this->addSql('CREATE TABLE classification__tag (id INT AUTO_INCREMENT NOT NULL, context VARCHAR(255) DEFAULT NULL, name VARCHAR(255) NOT NULL, enabled TINYINT(1) NOT NULL, slug VARCHAR(255) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX IDX_CA57A1C7E25D857E (context), UNIQUE INDEX tag_context (slug, context), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_general_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE '.$_ENV['DATABASE_PREFIX'].'classification__context (id VARCHAR(255) NOT NULL, name VARCHAR(255) NOT NULL, enabled TINYINT(1) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_general_ci` ENGINE = InnoDB'); $this->addSql('CREATE TABLE classification__context (id VARCHAR(255) NOT NULL, name VARCHAR(255) NOT NULL, enabled TINYINT(1) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_general_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'classification__collection ADD CONSTRAINT FK_A406B56AE25D857E FOREIGN KEY (context) REFERENCES '.$_ENV['DATABASE_PREFIX'].'classification__context (id)'); $this->addSql('ALTER TABLE classification__collection ADD CONSTRAINT FK_A406B56AE25D857E FOREIGN KEY (context) REFERENCES classification__context (id)');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'classification__collection ADD CONSTRAINT FK_A406B56AEA9FDD75 FOREIGN KEY (media_id) REFERENCES '.$_ENV['DATABASE_PREFIX'].'media__media (id) ON DELETE SET NULL'); $this->addSql('ALTER TABLE classification__collection ADD CONSTRAINT FK_A406B56AEA9FDD75 FOREIGN KEY (media_id) REFERENCES media__media (id) ON DELETE SET NULL');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'classification__category ADD CONSTRAINT FK_43629B36727ACA70 FOREIGN KEY (parent_id) REFERENCES '.$_ENV['DATABASE_PREFIX'].'classification__category (id) ON DELETE CASCADE'); $this->addSql('ALTER TABLE classification__category ADD CONSTRAINT FK_43629B36727ACA70 FOREIGN KEY (parent_id) REFERENCES classification__category (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'classification__category ADD CONSTRAINT FK_43629B36E25D857E FOREIGN KEY (context) REFERENCES '.$_ENV['DATABASE_PREFIX'].'classification__context (id)'); $this->addSql('ALTER TABLE classification__category ADD CONSTRAINT FK_43629B36E25D857E FOREIGN KEY (context) REFERENCES classification__context (id)');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'classification__category ADD CONSTRAINT FK_43629B36EA9FDD75 FOREIGN KEY (media_id) REFERENCES '.$_ENV['DATABASE_PREFIX'].'media__media (id) ON DELETE SET NULL'); $this->addSql('ALTER TABLE classification__category ADD CONSTRAINT FK_43629B36EA9FDD75 FOREIGN KEY (media_id) REFERENCES media__media (id) ON DELETE SET NULL');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'classification__tag ADD CONSTRAINT FK_CA57A1C7E25D857E FOREIGN KEY (context) REFERENCES '.$_ENV['DATABASE_PREFIX'].'classification__context (id)'); $this->addSql('ALTER TABLE classification__tag ADD CONSTRAINT FK_CA57A1C7E25D857E FOREIGN KEY (context) REFERENCES classification__context (id)');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'media__media ADD category_id INT DEFAULT NULL'); $this->addSql('ALTER TABLE media__media ADD category_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'media__media ADD CONSTRAINT FK_5C6DD74E12469DE2 FOREIGN KEY (category_id) REFERENCES '.$_ENV['DATABASE_PREFIX'].'classification__category (id) ON DELETE SET NULL'); $this->addSql('ALTER TABLE media__media ADD CONSTRAINT FK_5C6DD74E12469DE2 FOREIGN KEY (category_id) REFERENCES classification__category (id) ON DELETE SET NULL');
$this->addSql('CREATE INDEX IDX_5C6DD74E12469DE2 ON '.$_ENV['DATABASE_PREFIX'].'media__media (category_id)'); $this->addSql('CREATE INDEX IDX_5C6DD74E12469DE2 ON media__media (category_id)');
} }
public function down(Schema $schema) : void public function down(Schema $schema) : void
...@@ -42,16 +42,16 @@ final class Version20200421145001 extends AbstractMigration ...@@ -42,16 +42,16 @@ final class Version20200421145001 extends AbstractMigration
// this down() migration is auto-generated, please modify it to your needs // this down() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'classification__category DROP FOREIGN KEY FK_43629B36727ACA70'); $this->addSql('ALTER TABLE classification__category DROP FOREIGN KEY FK_43629B36727ACA70');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'media__media DROP FOREIGN KEY FK_5C6DD74E12469DE2'); $this->addSql('ALTER TABLE media__media DROP FOREIGN KEY FK_5C6DD74E12469DE2');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'classification__collection DROP FOREIGN KEY FK_A406B56AE25D857E'); $this->addSql('ALTER TABLE classification__collection DROP FOREIGN KEY FK_A406B56AE25D857E');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'classification__category DROP FOREIGN KEY FK_43629B36E25D857E'); $this->addSql('ALTER TABLE classification__category DROP FOREIGN KEY FK_43629B36E25D857E');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'classification__tag DROP FOREIGN KEY FK_CA57A1C7E25D857E'); $this->addSql('ALTER TABLE classification__tag DROP FOREIGN KEY FK_CA57A1C7E25D857E');
$this->addSql('DROP TABLE '.$_ENV['DATABASE_PREFIX'].'classification__collection'); $this->addSql('DROP TABLE classification__collection');
$this->addSql('DROP TABLE '.$_ENV['DATABASE_PREFIX'].'classification__category'); $this->addSql('DROP TABLE classification__category');
$this->addSql('DROP TABLE '.$_ENV['DATABASE_PREFIX'].'classification__tag'); $this->addSql('DROP TABLE classification__tag');
$this->addSql('DROP TABLE '.$_ENV['DATABASE_PREFIX'].'classification__context'); $this->addSql('DROP TABLE classification__context');
$this->addSql('DROP INDEX IDX_5C6DD74E12469DE2 ON '.$_ENV['DATABASE_PREFIX'].'media__media'); $this->addSql('DROP INDEX IDX_5C6DD74E12469DE2 ON media__media');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'media__media DROP category_id'); $this->addSql('ALTER TABLE media__media DROP category_id');
} }
} }
...@@ -22,7 +22,7 @@ final class Version20200422111240 extends AbstractMigration ...@@ -22,7 +22,7 @@ final class Version20200422111240 extends AbstractMigration
// this up() migration is auto-generated, please modify it to your needs // this up() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('DROP TABLE '.$_ENV['DATABASE_PREFIX'].'lien'); $this->addSql('DROP TABLE lien');
} }
public function down(Schema $schema) : void public function down(Schema $schema) : void
...@@ -30,7 +30,7 @@ final class Version20200422111240 extends AbstractMigration ...@@ -30,7 +30,7 @@ final class Version20200422111240 extends AbstractMigration
// this down() migration is auto-generated, please modify it to your needs // this down() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('CREATE TABLE '.$_ENV['DATABASE_PREFIX'].'lien (id INT AUTO_INCREMENT NOT NULL, user_id INT DEFAULT NULL, url VARCHAR(255) CHARACTER SET utf8 NOT NULL COLLATE `utf8_general_ci`, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, enabled TINYINT(1) NOT NULL, name VARCHAR(150) CHARACTER SET utf8 NOT NULL COLLATE `utf8_general_ci`, slug VARCHAR(150) CHARACTER SET utf8 NOT NULL COLLATE `utf8_general_ci`, content LONGTEXT CHARACTER SET utf8 DEFAULT NULL COLLATE `utf8_general_ci`, UNIQUE INDEX UNIQ_A532B4B5989D9B62 (slug), INDEX IDX_A532B4B5A76ED395 (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB COMMENT = \'\' '); $this->addSql('CREATE TABLE lien (id INT AUTO_INCREMENT NOT NULL, user_id INT DEFAULT NULL, url VARCHAR(255) CHARACTER SET utf8 NOT NULL COLLATE `utf8_general_ci`, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, enabled TINYINT(1) NOT NULL, name VARCHAR(150) CHARACTER SET utf8 NOT NULL COLLATE `utf8_general_ci`, slug VARCHAR(150) CHARACTER SET utf8 NOT NULL COLLATE `utf8_general_ci`, content LONGTEXT CHARACTER SET utf8 DEFAULT NULL COLLATE `utf8_general_ci`, UNIQUE INDEX UNIQ_A532B4B5989D9B62 (slug), INDEX IDX_A532B4B5A76ED395 (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'lien ADD CONSTRAINT FK_A532B4B5A76ED395 FOREIGN KEY (user_id) REFERENCES '.$_ENV['DATABASE_PREFIX'].'user (id)'); $this->addSql('ALTER TABLE lien ADD CONSTRAINT FK_A532B4B5A76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');
} }
} }
...@@ -22,7 +22,7 @@ final class Version20200428113803 extends AbstractMigration ...@@ -22,7 +22,7 @@ final class Version20200428113803 extends AbstractMigration
// this up() migration is auto-generated, please modify it to your needs // this up() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'contact_prestataire ADD tel VARCHAR(20) DEFAULT NULL, ADD email VARCHAR(100) DEFAULT NULL'); $this->addSql('ALTER TABLE contact_prestataire ADD tel VARCHAR(20) DEFAULT NULL, ADD email VARCHAR(100) DEFAULT NULL');
} }
public function down(Schema $schema) : void public function down(Schema $schema) : void
...@@ -30,6 +30,6 @@ final class Version20200428113803 extends AbstractMigration ...@@ -30,6 +30,6 @@ final class Version20200428113803 extends AbstractMigration
// this down() migration is auto-generated, please modify it to your needs // this down() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'contact_prestataire DROP tel, DROP email'); $this->addSql('ALTER TABLE contact_prestataire DROP tel, DROP email');
} }
} }
...@@ -22,7 +22,7 @@ final class Version20200428133534 extends AbstractMigration ...@@ -22,7 +22,7 @@ final class Version20200428133534 extends AbstractMigration
// this up() migration is auto-generated, please modify it to your needs // this up() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('DROP TABLE '.$_ENV['DATABASE_PREFIX'].'message'); $this->addSql('DROP TABLE message');
} }
public function down(Schema $schema) : void public function down(Schema $schema) : void
...@@ -30,8 +30,8 @@ final class Version20200428133534 extends AbstractMigration ...@@ -30,8 +30,8 @@ final class Version20200428133534 extends AbstractMigration
// this down() migration is auto-generated, please modify it to your needs // this down() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('CREATE TABLE '.$_ENV['DATABASE_PREFIX'].'message (id INT AUTO_INCREMENT NOT NULL, expediteur_id INT DEFAULT NULL, destinataire_id INT DEFAULT NULL, name VARCHAR(150) CHARACTER SET utf8 NOT NULL COLLATE `utf8_general_ci`, slug VARCHAR(150) CHARACTER SET utf8 NOT NULL COLLATE `utf8_general_ci`, content LONGTEXT CHARACTER SET utf8 DEFAULT NULL COLLATE `utf8_general_ci`, enabled TINYINT(1) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX IDX_B6BD307FA4F84F6E (destinataire_id), UNIQUE INDEX UNIQ_B6BD307F989D9B62 (slug), INDEX IDX_B6BD307F10335F61 (expediteur_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB COMMENT = \'\' '); $this->addSql('CREATE TABLE message (id INT AUTO_INCREMENT NOT NULL, expediteur_id INT DEFAULT NULL, destinataire_id INT DEFAULT NULL, name VARCHAR(150) CHARACTER SET utf8 NOT NULL COLLATE `utf8_general_ci`, slug VARCHAR(150) CHARACTER SET utf8 NOT NULL COLLATE `utf8_general_ci`, content LONGTEXT CHARACTER SET utf8 DEFAULT NULL COLLATE `utf8_general_ci`, enabled TINYINT(1) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX IDX_B6BD307FA4F84F6E (destinataire_id), UNIQUE INDEX UNIQ_B6BD307F989D9B62 (slug), INDEX IDX_B6BD307F10335F61 (expediteur_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'message ADD CONSTRAINT FK_B6BD307F10335F61 FOREIGN KEY (expediteur_id) REFERENCES '.$_ENV['DATABASE_PREFIX'].'user (id)'); $this->addSql('ALTER TABLE message ADD CONSTRAINT FK_B6BD307F10335F61 FOREIGN KEY (expediteur_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'message ADD CONSTRAINT FK_B6BD307FA4F84F6E FOREIGN KEY (destinataire_id) REFERENCES '.$_ENV['DATABASE_PREFIX'].'user (id)'); $this->addSql('ALTER TABLE message ADD CONSTRAINT FK_B6BD307FA4F84F6E FOREIGN KEY (destinataire_id) REFERENCES user (id)');
} }
} }
...@@ -22,7 +22,7 @@ final class Version20200505124505 extends AbstractMigration ...@@ -22,7 +22,7 @@ final class Version20200505124505 extends AbstractMigration
// this up() migration is auto-generated, please modify it to your needs // this up() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'flux ADD tauxreconversion NUMERIC(7, 2) DEFAULT NULL'); $this->addSql('ALTER TABLE flux ADD tauxreconversion NUMERIC(7, 2) DEFAULT NULL');
} }
public function down(Schema $schema) : void public function down(Schema $schema) : void
...@@ -30,6 +30,6 @@ final class Version20200505124505 extends AbstractMigration ...@@ -30,6 +30,6 @@ final class Version20200505124505 extends AbstractMigration
// this down() migration is auto-generated, please modify it to your needs // this down() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'flux DROP tauxreconversion'); $this->addSql('ALTER TABLE flux DROP tauxreconversion');
} }
} }
...@@ -22,7 +22,7 @@ final class Version20200520130916 extends AbstractMigration ...@@ -22,7 +22,7 @@ final class Version20200520130916 extends AbstractMigration
// this up() migration is auto-generated, please modify it to your needs // this up() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'prestataire ADD tauxreconversion NUMERIC(7, 2) DEFAULT NULL'); $this->addSql('ALTER TABLE prestataire ADD tauxreconversion NUMERIC(7, 2) DEFAULT NULL');
} }
public function down(Schema $schema) : void public function down(Schema $schema) : void
...@@ -30,6 +30,6 @@ final class Version20200520130916 extends AbstractMigration ...@@ -30,6 +30,6 @@ final class Version20200520130916 extends AbstractMigration
// this down() migration is auto-generated, please modify it to your needs // this down() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE '.$_ENV['DATABASE_PREFIX'].'prestataire DROP tauxreconversion'); $this->addSql('ALTER TABLE prestataire DROP tauxreconversion');
} }
} }
...@@ -236,6 +236,15 @@ ...@@ -236,6 +236,15 @@
"kriswallsmith/buzz": { "kriswallsmith/buzz": {
"version": "v0.16.1" "version": "v0.16.1"
}, },
"laminas/laminas-code": {
"version": "3.4.1"
},
"laminas/laminas-eventmanager": {
"version": "3.2.1"
},
"laminas/laminas-zendframework-bridge": {
"version": "1.0.4"
},
"lcobucci/jwt": { "lcobucci/jwt": {
"version": "3.3.1" "version": "3.3.1"
}, },
...@@ -312,7 +321,7 @@ ...@@ -312,7 +321,7 @@
"version": "2.1.1" "version": "2.1.1"
}, },
"php": { "php": {
"version": "7.3" "version": "7.4"
}, },
"php-http/discovery": { "php-http/discovery": {
"version": "1.5.2" "version": "1.5.2"
...@@ -864,6 +873,9 @@ ...@@ -864,6 +873,9 @@
"ref": "c4f5755b37fb65b9c6a3cbdae91205c15a137ed4" "ref": "c4f5755b37fb65b9c6a3cbdae91205c15a137ed4"
} }
}, },
"webimpress/safe-writer": {
"version": "2.0.1"
},
"webmozart/assert": { "webmozart/assert": {
"version": "1.3.0" "version": "1.3.0"
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment