aboutsummaryrefslogtreecommitdiffhomepage
path: root/bin/migrate
diff options
context:
space:
mode:
authorwinter2024-12-07 21:44:42 +0000
committerwinter2024-12-07 21:44:42 +0000
commita84232811dadccf7047424f27340a7f9847bedff (patch)
treea6a0823c8b9485b6a5b60ea7ae854f9511a6ae1e /bin/migrate
parente1ad307b531c27ec6bfaf8b4d018991b0d4a78f3 (diff)
many many changes but actors are loaded from db now
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