update
This commit is contained in:
parent
6fb2117363
commit
2ef06896f6
2 changed files with 3 additions and 11 deletions
|
@ -129,7 +129,7 @@ sed -i "s/^APP_NAME=.*/APP_NAME=AlphaXPanel/" .env
|
|||
sed -i "s/^DB_DATABASE=.*/DB_DATABASE=$PANEL_DB_NAME/" .env
|
||||
sed -i "s/^DB_USERNAME=.*/DB_USERNAME=$PANEL_DB_USER/" .env
|
||||
sed -i "s/^DB_PASSWORD=.*/DB_PASSWORD=$PANEL_DB_PASSWORD/" .env
|
||||
sed -i "s/^DB_CONNECTION=.*/DB_CONNECTION=database/" .env
|
||||
sed -i "s/^DB_CONNECTION=.*/DB_CONNECTION=mysql/" .env
|
||||
|
||||
php8.2 artisan key:generate
|
||||
php8.2 artisan migrate
|
||||
|
|
|
@ -38,18 +38,10 @@ return [
|
|||
'sqlite' => [
|
||||
'driver' => 'sqlite',
|
||||
'url' => env('DATABASE_URL'),
|
||||
'database' => database_path('database.sqlite'),
|
||||
'database' => env('DB_DATABASE', database_path('database.sqlite')),
|
||||
'prefix' => '',
|
||||
'foreign_key_constraints' =>false,
|
||||
'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true),
|
||||
],
|
||||
//
|
||||
// 'sqlite' => [
|
||||
// 'driver' => 'sqlite',
|
||||
// 'url' => env('DATABASE_URL'),
|
||||
// 'database' => env('DB_DATABASE', database_path('database.sqlite')),
|
||||
// 'prefix' => '',
|
||||
// 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true),
|
||||
// ],
|
||||
|
||||
'mysql' => [
|
||||
'driver' => 'mysql',
|
||||
|
|
Loading…
Reference in a new issue