aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dbal/fixtures
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2011-07-15 11:57:53 -0400
committerNathan Guse <nathaniel.guse@gmail.com>2013-01-09 16:39:59 -0600
commitf817e20f287a21e2dddfba9721f5e02dce162d29 (patch)
treef78eec7bd0b090fb564048b87d01669b155e1627 /tests/dbal/fixtures
parent0e9b7bcae98ec5f864ad8f183ded4fc0040cec28 (diff)
downloadforums-f817e20f287a21e2dddfba9721f5e02dce162d29.tar
forums-f817e20f287a21e2dddfba9721f5e02dce162d29.tar.gz
forums-f817e20f287a21e2dddfba9721f5e02dce162d29.tar.bz2
forums-f817e20f287a21e2dddfba9721f5e02dce162d29.tar.xz
forums-f817e20f287a21e2dddfba9721f5e02dce162d29.zip
[feature/migrations] Basic migrations with schema and data changes
The migrator takes care of applying migrations as necessary. RFC: http://area51.phpbb.com/phpBB/viewtopic.php?f=84&t=41337 PHPBB3-9737
Diffstat (limited to 'tests/dbal/fixtures')
-rw-r--r--tests/dbal/fixtures/migrator.xml27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/dbal/fixtures/migrator.xml b/tests/dbal/fixtures/migrator.xml
new file mode 100644
index 0000000000..1f9079c811
--- /dev/null
+++ b/tests/dbal/fixtures/migrator.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<dataset>
+ <table name="phpbb_migrations">
+ <column>migration_name</column>
+ <column>migration_schema_done</column>
+ <column>migration_data_done</column>
+ <column>migration_data_state</column>
+ <column>migration_start_time</column>
+ <column>migration_end_time</column>
+ <row>
+ <value>installed_migration</value>
+ <value>1</value>
+ <value>1</value>
+ <value></value>
+ <value>1234</value>
+ <value>5678</value>
+ </row>
+ </table>
+ <table name="phpbb_config">
+ <column>config_name</column>
+ <column>config_value</column>
+ <row>
+ <value>foo</value>
+ <value>bar</value>
+ </row>
+ </table>
+</dataset>