Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Database support #277

Merged
merged 3 commits into from
Jun 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"illuminate/console": "^9.47",
"illuminate/container": "^9.47",
"illuminate/contracts": "^9.47",
"illuminate/database": "^9.47",
"illuminate/events": "^9.47",
"illuminate/filesystem": "^9.47",
"illuminate/http": "^9.47",
Expand Down
2 changes: 2 additions & 0 deletions config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@
Illuminate\Cache\CacheServiceProvider::class,
Illuminate\Cookie\CookieServiceProvider::class,
Illuminate\Database\DatabaseServiceProvider::class,
Illuminate\Database\MigrationServiceProvider::class,
Illuminate\Encryption\EncryptionServiceProvider::class,
Illuminate\Foundation\Providers\ComposerServiceProvider::class,
Illuminate\Hashing\HashServiceProvider::class,
Illuminate\Mail\MailServiceProvider::class,
Illuminate\Notifications\NotificationServiceProvider::class,
Expand Down
4 changes: 2 additions & 2 deletions config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
'password' => DB_PASSWORD,
'unix_socket' => env('DB_SOCKET', ''),
'charset' => DB_CHARSET,
'collation' => DB_COLLATE,
'prefix' => $table_prefix ?? $GLOBALS['wpdb']->prefix,
'collation' => $GLOBALS['wpdb']->collate,
'prefix' => $GLOBALS['wpdb']->prefix,
retlehs marked this conversation as resolved.
Show resolved Hide resolved
'prefix_indexes' => true,
'strict' => true,
'engine' => null,
Expand Down
3 changes: 3 additions & 0 deletions src/Roots/Acorn/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ class Kernel extends FoundationConsoleKernel
protected $commands = [
\Illuminate\Cache\Console\ClearCommand::class,
\Illuminate\Cache\Console\ForgetCommand::class,
\Illuminate\Database\Console\DbCommand::class,
\Illuminate\Database\Console\Seeds\SeedCommand::class,
\Illuminate\Database\Console\WipeCommand::class,
\Illuminate\Foundation\Console\ClearCompiledCommand::class,
\Illuminate\Foundation\Console\ComponentMakeCommand::class,
\Illuminate\Foundation\Console\ConfigClearCommand::class,
Expand Down