aboutsummaryrefslogtreecommitdiffhomepage
path: root/bin/migrate
diff options
context:
space:
mode:
Diffstat (limited to 'bin/migrate')
-rwxr-xr-xbin/migrate10
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/migrate b/bin/migrate
new file mode 100755
index 0000000..29d2001
--- /dev/null
+++ b/bin/migrate
@@ -0,0 +1,10 @@
+#!/usr/bin/env php
+<?php
+
+require __DIR__ . '/../vendor/autoload.php';
+
+foreach (glob(__DIR__ . '/../migrations/*.php') as $file) {
+ require $file;
+}
+
+\WpfTest\Db\Migrator::getInstance()->migrate(); \ No newline at end of file