aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2019-06-21 09:15:35 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2019-06-21 09:15:35 +0200
commitc1a5dfe5e4947f97ba7d7d5b73973ddedf3d8b01 (patch)
tree6b6d369d62000722a21b07250d8bde4baa38fd0a
parent1f36a21887102b9c3f5545df964bb4b002648718 (diff)
downloadwallabag-c1a5dfe5e4947f97ba7d7d5b73973ddedf3d8b01.tar.gz
wallabag-c1a5dfe5e4947f97ba7d7d5b73973ddedf3d8b01.tar.zst
wallabag-c1a5dfe5e4947f97ba7d7d5b73973ddedf3d8b01.zip
Use `skipIf` instead of `abortIf`
This is to avoid migration using an other SGBD to break.
-rw-r--r--app/DoctrineMigrations/Version20190619093534.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/DoctrineMigrations/Version20190619093534.php b/app/DoctrineMigrations/Version20190619093534.php
index 04c3a9fe..e9744f1b 100644
--- a/app/DoctrineMigrations/Version20190619093534.php
+++ b/app/DoctrineMigrations/Version20190619093534.php
@@ -14,7 +14,7 @@ final class Version20190619093534 extends WallabagMigration
14 public function up(Schema $schema): void 14 public function up(Schema $schema): void
15 { 15 {
16 // this up() migration is auto-generated, please modify it to your needs 16 // this up() migration is auto-generated, please modify it to your needs
17 $this->abortIf('sqlite' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'sqlite\'.'); 17 $this->skipIf('sqlite' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'sqlite\'.');
18 18
19 $this->addSql('UPDATE ' . $this->getTable('entry', true) . ' SET reading_time = 0 WHERE reading_time IS NULL;'); 19 $this->addSql('UPDATE ' . $this->getTable('entry', true) . ' SET reading_time = 0 WHERE reading_time IS NULL;');
20 20
@@ -42,7 +42,7 @@ final class Version20190619093534 extends WallabagMigration
42 public function down(Schema $schema): void 42 public function down(Schema $schema): void
43 { 43 {
44 // this down() migration is auto-generated, please modify it to your needs 44 // this down() migration is auto-generated, please modify it to your needs
45 $this->abortIf('sqlite' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'sqlite\'.'); 45 $this->skipIf('sqlite' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'sqlite\'.');
46 46
47 $this->addSql('DROP INDEX IDX_F4D18282A76ED395'); 47 $this->addSql('DROP INDEX IDX_F4D18282A76ED395');
48 $this->addSql('DROP INDEX created_at'); 48 $this->addSql('DROP INDEX created_at');