aboutsummaryrefslogtreecommitdiffhomepage
path: root/migrations/20250118_164240_create_global_setting.php
diff options
context:
space:
mode:
authorwinter2025-01-18 18:10:35 +0000
committerwinter2025-01-18 18:10:35 +0000
commit00ab9734e880219fa68fed98cefda5ce12958e4b (patch)
treed32208c6eb9dfaef222e6df25fd364a0a6d07188 /migrations/20250118_164240_create_global_setting.php
parentc11c5064019f96d704cf324c8ee8580dd9e0d594 (diff)
implement global settings system
Diffstat (limited to 'migrations/20250118_164240_create_global_setting.php')
-rw-r--r--migrations/20250118_164240_create_global_setting.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/migrations/20250118_164240_create_global_setting.php b/migrations/20250118_164240_create_global_setting.php
new file mode 100644
index 0000000..af51fb9
--- /dev/null
+++ b/migrations/20250118_164240_create_global_setting.php
@@ -0,0 +1,13 @@
+<?php
+
+use \Digitigrade\Db\Migrator;
+
+Migrator::getInstance()->register(20250118_164240, function (PDO $db) {
+ // global settings table
+ $db->exec(<<<END
+ CREATE TABLE global_setting (
+ name text primary key,
+ value text not null
+ );
+ END);
+});