diff options
| author | winter | 2025-01-18 18:10:35 +0000 |
|---|---|---|
| committer | winter | 2025-01-18 18:10:35 +0000 |
| commit | 00ab9734e880219fa68fed98cefda5ce12958e4b (patch) | |
| tree | d32208c6eb9dfaef222e6df25fd364a0a6d07188 /migrations | |
| parent | c11c5064019f96d704cf324c8ee8580dd9e0d594 (diff) | |
implement global settings system
Diffstat (limited to 'migrations')
| -rw-r--r-- | migrations/20250118_164240_create_global_setting.php | 13 |
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); +}); |
