mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2026-05-20 10:04:53 +00:00
🔥 Add initial database migrations, seeders, and factories
🎨 Refactor `Lecturer` model to include new fields and factory usage 🔧 Update `DatabaseSeeder` to handle default seeds 🛠️ Enhance `einundzwanzig` database configuration for SQLite compatibility
This commit is contained in:
+9
-1
@@ -97,7 +97,15 @@ return [
|
||||
'sslmode' => 'prefer',
|
||||
],
|
||||
|
||||
'einundzwanzig' => [
|
||||
'einundzwanzig' => env('DB_CONNECTION', 'sqlite') === 'sqlite' ? [
|
||||
'driver' => 'sqlite',
|
||||
'database' => env('DB_DATABASE', database_path('database.sqlite')),
|
||||
'prefix' => '',
|
||||
'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true),
|
||||
'busy_timeout' => null,
|
||||
'journal_mode' => null,
|
||||
'synchronous' => null,
|
||||
] : [
|
||||
'driver' => 'pgsql',
|
||||
'url' => env('DB_URL_EINUNDZANZIG'),
|
||||
'host' => env('DB_HOST_EINUNDZANZIG', '127.0.0.1'),
|
||||
|
||||
Reference in New Issue
Block a user