diff options
Diffstat (limited to 'src/index.php')
-rw-r--r-- | src/index.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/index.php b/src/index.php new file mode 100644 index 0000000..62a300a --- /dev/null +++ b/src/index.php @@ -0,0 +1,13 @@ +<?php + +use mystic\forum\Database; +use mystic\forum\orm\Post; +use mystic\forum\orm\Topic; +use mystic\forum\orm\User; + +require_once __DIR__ . "/vendor/autoload.php"; + +$db = new Database(Database::getConnectionString("db", "postgres", "postgres", "postgres")); +$db->ensureTable(User::class); +$db->ensureTable(Topic::class); +$db->ensureTable(Post::class); |