summaryrefslogtreecommitdiff
path: root/src/index.php
blob: 62a300ac914432556563949d01177a1e78813d24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);