aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/DoctrineMigrations/Version20160120200534_settings.php
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-01-21 12:21:11 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-01-31 14:48:26 +0100
commit278b221e6545c5990e9d79a4c6bb4491b22a7a85 (patch)
tree440091daf9362d71db91be67574b71a1d3910ed0 /app/DoctrineMigrations/Version20160120200534_settings.php
parent1e3ed714707878caa603ffdc262e64abb6ddfb5c (diff)
downloadwallabag-278b221e6545c5990e9d79a4c6bb4491b22a7a85.tar.gz
wallabag-278b221e6545c5990e9d79a4c6bb4491b22a7a85.tar.zst
wallabag-278b221e6545c5990e9d79a4c6bb4491b22a7a85.zip
We don't need migration yet
Diffstat (limited to 'app/DoctrineMigrations/Version20160120200534_settings.php')
-rw-r--r--app/DoctrineMigrations/Version20160120200534_settings.php51
1 files changed, 0 insertions, 51 deletions
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 @@
1<?php
2
3namespace Application\Migrations;
4
5use Doctrine\DBAL\Migrations\AbstractMigration;
6use Doctrine\DBAL\Schema\Schema;
7
8/**
9 * Auto-generated Migration: Please modify to your needs!
10 */
11class Version20160120200534_settings extends AbstractMigration
12{
13 /**
14 * @param Schema $schema
15 */
16 public function up(Schema $schema)
17 {
18 // this up() migration is auto-generated, please modify it to your needs
19 $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.');
20
21 $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');
22 $this->addSql("INSERT INTO `craue_config_setting` (`name`, `value`, `section`) VALUES
23 ('download_pictures', '1', 'entry'),
24 ('carrot', '1', 'entry'),
25 ('share_diaspora', '1', 'entry'),
26 ('diaspora_url', 'http://diasporapod.com', 'entry'),
27 ('share_shaarli', '1', 'entry'),
28 ('shaarli_url', 'http://myshaarli.com', 'entry'),
29 ('share_mail', '1', 'entry'),
30 ('share_twitter', '1', 'entry'),
31 ('export_epub', '1', 'export'),
32 ('export_mobi', '1', 'export'),
33 ('export_pdf', '1', 'export'),
34 ('pocket_consumer_key', NULL, 'import'),
35 ('show_printlink', '1', 'entry'),
36 ('wallabag_support_url', 'https://www.wallabag.org/pages/support.html', 'misc'),
37 ('wallabag_url', 'http://v2.wallabag.org', 'misc')"
38 );
39 }
40
41 /**
42 * @param Schema $schema
43 */
44 public function down(Schema $schema)
45 {
46 // this down() migration is auto-generated, please modify it to your needs
47 $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.');
48
49 $this->addSql('DROP TABLE craue_config_setting');
50 }
51}