partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit e3af138d2ac110ef31074e725e6cb378cdb89309
parent 99a7ac3203a6a96fee7dceeb0fa089c20b3fca44
Author: Felicitus <felicitus@felicitus.org>
Date:   Wed,  9 Dec 2015 17:41:11 +0100

Added missing migration

Diffstat:
Asrc/PartKeepr/CoreBundle/DoctrineMigrations/Version20151208162723.php | 30++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+), 0 deletions(-)

diff --git a/src/PartKeepr/CoreBundle/DoctrineMigrations/Version20151208162723.php b/src/PartKeepr/CoreBundle/DoctrineMigrations/Version20151208162723.php @@ -0,0 +1,30 @@ +<?php + +namespace PartKeepr\CoreBundle\DoctrineMigrations; + +use Doctrine\DBAL\Schema\Schema; + +/** + * Sets all present users to be active + */ +class Version20151208162723 extends BaseMigration +{ + /** + * @param Schema $schema + */ + public function up(Schema $schema) + { + $this->performDatabaseUpgrade(); + $activeUsersSQL = "UPDATE PartKeeprUser SET active = 1"; + $this->addSql($activeUsersSQL); + } + + /** + * @param Schema $schema + */ + public function down(Schema $schema) + { + // this down() migration is auto-generated, please modify it to your needs + + } +}