diff options
author | Jonas Kohl | 2024-09-08 17:53:55 +0200 |
---|---|---|
committer | Jonas Kohl | 2024-09-08 17:53:55 +0200 |
commit | 415a0a96a76afbe7f1ad2f51862641793caf1b6c (patch) | |
tree | 1168316bff6a2ec04ee27db5ada5431ba6631ce4 /src/index.php |
Initial commit
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); |