We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18a32c7 commit 5539859Copy full SHA for 5539859
2 files changed
.env.example
@@ -1,3 +1,5 @@
1
DB_DSN=mysql:host=localhost;dbname=shika
2
DB_USERNAME=
3
DB_PASSWORD=
4
+
5
+MAXMIND_PATH=
migrations/mysql/0004_extend_visits.php
@@ -0,0 +1,15 @@
+<?php
+use Astylodon\Migrations\Database\DatabaseInterface;
+use Astylodon\Migrations\Migration;
6
+return new class implements Migration
7
+{
8
+ public function up(DatabaseInterface $database)
9
+ {
10
+ $database->exec("ALTER TABLE visits ADD country_code VARCHAR(2)");
11
+ $database->exec("ALTER TABLE visits ADD browser VARCHAR(50)");
12
+ $database->exec("ALTER TABLE visits ADD operating_system VARCHAR(50)");
13
+ $database->exec("ALTER TABLE visits ADD device_type VARCHAR(8)");
14
+ }
15
+};
0 commit comments