Skip to content
Snippets Groups Projects
Commit aa67138c authored by Donovan Bourlard's avatar Donovan Bourlard
Browse files

Merge branch 'hotfix/v1.2.1'

parents 5b33f7bf ebe6bfba
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,10 @@
## [UNRELEASED]
## [1.2.1] - 2018-11-07
### Fix
- [MATURITE] L'ordre des catégories est auto-généré (il restait à 0 pour toutes les catégories)
## [1.2.0] - 2018-11-07
### Changement
- [MATURITE] Les catégories sont ordonnées lors de la visualisation et la génération Word, #109
......
parameters:
app.version: 1.2.0
app.version: 1.2.1
framework:
secret: '%env(APP_SECRET)%'
......
<?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 Version20181108184203 extends AbstractMigration
{
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->abortIf('mysql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('SET @number := 0; UPDATE maturity_domain SET position = (@number := @number+1);');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->abortIf('mysql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('UPDATE maturity_domain SET position=0;');
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment