partkeepr

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

Version20151208162723.php (622B)


      1 <?php
      2 
      3 namespace PartKeepr\CoreBundle\DoctrineMigrations;
      4 
      5 use Doctrine\DBAL\Schema\Schema;
      6 
      7 /**
      8  * Sets all present users to be active.
      9  */
     10 class Version20151208162723 extends BaseMigration
     11 {
     12     /**
     13      * @param Schema $schema
     14      */
     15     public function up(Schema $schema)
     16     {
     17         $this->performDatabaseUpgrade();
     18         $activeUsersSQL = 'UPDATE PartKeeprUser SET active = true';
     19         $this->addSql($activeUsersSQL);
     20     }
     21 
     22     /**
     23      * @param Schema $schema
     24      */
     25     public function down(Schema $schema)
     26     {
     27         // this down() migration is auto-generated, please modify it to your needs
     28     }
     29 }