-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmigration.php
More file actions
49 lines (28 loc) · 948 Bytes
/
Copy pathmigration.php
File metadata and controls
49 lines (28 loc) · 948 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
require_once "./vendor/autoload.php";
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
$dotenv->load();
$migration = new Application\Database\Migration\Migrate();
echo "=== Migrating users table ===" . PHP_EOL;
$migration->users();
echo "==== users table created ====" . PHP_EOL;
//
echo "=== Migrating content table ===" . PHP_EOL;
$migration->content();
echo "==== content table created ====" . PHP_EOL;
//
echo "=== Migrating progress table ===" . PHP_EOL;
$migration->progress();
echo "==== progress table created ====" . PHP_EOL;
//
echo "=== Migrating quizzes table ===" . PHP_EOL;
$migration->quizzes();
echo "==== quizzes table created ====" . PHP_EOL;
//
echo "=== Migrating questions table ===" . PHP_EOL;
$migration->questions();
echo "==== questions table created ====" . PHP_EOL;
//
echo "=== Migrating answers table ===" . PHP_EOL;
$migration->answers();
echo "==== answers table created ====" . PHP_EOL;