]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Remove phinx
authorJeremy Benoist <jeremy.benoist@gmail.com>
Tue, 2 Jun 2015 14:54:52 +0000 (16:54 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Tue, 2 Jun 2015 14:54:52 +0000 (16:54 +0200)
Doctrine handle quite correctly database migration. Thanks to `doctrine:schema:update`

app/db/poche.sqlite [deleted file]
bin/phinx [deleted symlink]
migrations/20150119171459_init_database.php [deleted file]
phinx.yml [deleted file]

diff --git a/app/db/poche.sqlite b/app/db/poche.sqlite
deleted file mode 100755 (executable)
index 7ae35dd..0000000
Binary files a/app/db/poche.sqlite and /dev/null differ
diff --git a/bin/phinx b/bin/phinx
deleted file mode 120000 (symlink)
index e78f316..0000000
--- a/bin/phinx
+++ /dev/null
@@ -1 +0,0 @@
-../vendor/robmorgan/phinx/bin/phinx
\ No newline at end of file
diff --git a/migrations/20150119171459_init_database.php b/migrations/20150119171459_init_database.php
deleted file mode 100644 (file)
index 35fc9e0..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
-
-use Phinx\Migration\AbstractMigration;
-
-class InitDatabase extends AbstractMigration
-{
-    /**
-     * Migrate Up.
-     */
-    public function up()
-    {
-        $this->execute("INSERT INTO config (name, value) VALUES ('foo', 'bar');");
-    }
-
-    /**
-     * Migrate Down.
-     */
-    public function down()
-    {
-        $this->execute("DELETE FROM config WHERE name = 'foo' AND value = 'bar';");
-    }
-}
\ No newline at end of file
diff --git a/phinx.yml b/phinx.yml
deleted file mode 100644 (file)
index 2686944..0000000
--- a/phinx.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-paths:
-    migrations: %%PHINX_CONFIG_DIR%%/migrations
-
-environments:
-    default_migration_table: phinxlog
-    default_database: development
-    production:
-        adapter: sqlite
-        name: app/db/poche
-
-    development:
-        adapter: sqlite
-        name: app/db/poche
-
-    testing:
-        adapter: sqlite
-        name: app/db/poche