]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - app/DoctrineMigrations/Version20200414120227.php
Removed old, not so maintained and buggy baggy theme
[github/wallabag/wallabag.git] / app / DoctrineMigrations / Version20200414120227.php
diff --git a/app/DoctrineMigrations/Version20200414120227.php b/app/DoctrineMigrations/Version20200414120227.php
new file mode 100644 (file)
index 0000000..45e4c63
--- /dev/null
@@ -0,0 +1,23 @@
+<?php
+
+namespace Application\Migrations;
+
+use Doctrine\DBAL\Migrations\SkipMigrationException;
+use Doctrine\DBAL\Schema\Schema;
+use Wallabag\CoreBundle\Doctrine\WallabagMigration;
+
+/**
+ * Remove baggy theme
+ */
+final class Version20200414120227 extends WallabagMigration
+{
+    public function up(Schema $schema) : void
+    {
+        $this->addSql('UPDATE ' . $this->getTable('config', true) . ' SET theme = "material" WHERE theme = "baggy";');
+    }
+
+    public function down(Schema $schema) : void
+    {
+        throw new SkipMigrationException('Not possible ... ');
+    }
+}