partkeepr

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

commit 83f48780548432bf008ad54d65e7bfe8de646d87
parent c79936c8e2688ded38dd860b5f45e4ae2f1399d3
Author: Felicitus <felicitus@felicitus.org>
Date:   Sun,  3 Jan 2016 17:25:39 +0100

Merge branch 'PartKeepr-548'

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

diff --git a/src/PartKeepr/CoreBundle/DoctrineMigrations/Version20160103145302.php b/src/PartKeepr/CoreBundle/DoctrineMigrations/Version20160103145302.php @@ -0,0 +1,40 @@ +<?php + +namespace PartKeepr\CoreBundle\DoctrineMigrations; + +use Doctrine\DBAL\Migrations\AbstractMigration; +use Doctrine\DBAL\Schema\Schema; + +/** + * Drops legacy tables + */ +class Version20160103145302 extends AbstractMigration +{ + /** + * @param Schema $schema + */ + public function up(Schema $schema) + { + $tablesToDrop = array( + "LastNotification", + "Event", + "Session", + "PrintingJobConfiguration", + "PrintingJob" + ); + foreach ($tablesToDrop as $table) { + if ($schema->hasTable($table)) { + $schema->dropTable($table); + } + } + } + + /** + * @param Schema $schema + */ + public function down(Schema $schema) + { + // this down() migration is auto-generated, please modify it to your needs + + } +}