commit 79eaba2d450d0e9139ac4c358ece5d866ccd8736 parent 5ce385552608d34af1cf57497ca1d0d3c0970692 Author: Felicitus <felicitus@felicitus.org> Date: Sat, 1 Aug 2015 19:24:25 +0200 Added user permission migration Diffstat:
A | src/PartKeepr/CoreBundle/DoctrineMigrations/Version20150801133623.php | | | 36 | ++++++++++++++++++++++++++++++++++++ |
1 file changed, 36 insertions(+), 0 deletions(-)
diff --git a/src/PartKeepr/CoreBundle/DoctrineMigrations/Version20150801133623.php b/src/PartKeepr/CoreBundle/DoctrineMigrations/Version20150801133623.php @@ -0,0 +1,36 @@ +<?php + +namespace PartKeepr\CoreBundle\DoctrineMigrations; + +use Doctrine\DBAL\Migrations\AbstractMigration; +use Doctrine\DBAL\Schema\Schema; + +/** + * Auto-generated Migration: Please modify to your needs! + */ +class Version20150801133623 extends AbstractMigration +{ + /** + * @param Schema $schema + */ + public function up(Schema $schema) + { + $sSQL = "UPDATE PartKeeprUser SET username_canonical = username"; + $this->addSql($sSQL); + + $sSQL = "UPDATE PartKeeprUser SET email_canonical = username"; + $this->addSql($sSQL); + + $sSQL = "UPDATE PartKeeprUser SET roles = 'a:0:{}'"; + $this->addSql($sSQL); + } + + /** + * @param Schema $schema + */ + public function down(Schema $schema) + { + // this down() migration is auto-generated, please modify it to your needs + + } +}