From 278b221e6545c5990e9d79a4c6bb4491b22a7a85 Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Thu, 21 Jan 2016 12:21:11 +0100 Subject: [PATCH] We don't need migration yet --- app/DoctrineMigrations/.gitkeep | 0 .../Version20160120200534_settings.php | 51 ------------------- 2 files changed, 51 deletions(-) create mode 100644 app/DoctrineMigrations/.gitkeep delete mode 100644 app/DoctrineMigrations/Version20160120200534_settings.php diff --git a/app/DoctrineMigrations/.gitkeep b/app/DoctrineMigrations/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/app/DoctrineMigrations/Version20160120200534_settings.php b/app/DoctrineMigrations/Version20160120200534_settings.php deleted file mode 100644 index 34809ff9..00000000 --- a/app/DoctrineMigrations/Version20160120200534_settings.php +++ /dev/null @@ -1,51 +0,0 @@ -abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.'); - - $this->addSql('CREATE TABLE craue_config_setting (name VARCHAR(255) NOT NULL, value VARCHAR(255) DEFAULT NULL, section VARCHAR(255) DEFAULT NULL, UNIQUE INDEX UNIQ_B95BA9425E237E06 (name), PRIMARY KEY(name)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB'); - $this->addSql("INSERT INTO `craue_config_setting` (`name`, `value`, `section`) VALUES - ('download_pictures', '1', 'entry'), - ('carrot', '1', 'entry'), - ('share_diaspora', '1', 'entry'), - ('diaspora_url', 'http://diasporapod.com', 'entry'), - ('share_shaarli', '1', 'entry'), - ('shaarli_url', 'http://myshaarli.com', 'entry'), - ('share_mail', '1', 'entry'), - ('share_twitter', '1', 'entry'), - ('export_epub', '1', 'export'), - ('export_mobi', '1', 'export'), - ('export_pdf', '1', 'export'), - ('pocket_consumer_key', NULL, 'import'), - ('show_printlink', '1', 'entry'), - ('wallabag_support_url', 'https://www.wallabag.org/pages/support.html', 'misc'), - ('wallabag_url', 'http://v2.wallabag.org', 'misc')" - ); - } - - /** - * @param Schema $schema - */ - public function down(Schema $schema) - { - // this down() migration is auto-generated, please modify it to your needs - $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.'); - - $this->addSql('DROP TABLE craue_config_setting'); - } -} -- 2.41.0