Skip to content

Commit 42e3daa

Browse files
committed
chore: switch default database to SQLite and update CI workflow
The default database connection has been changed from MySQL to SQLite to simplify local development and testing. The .env.example file has been updated to reflect this change, and the CI workflow has been modified to use the `--force` flag when running migrations to avoid manual confirmation during automated testing. This change improves development efficiency and ensures smoother CI/CD pipeline execution.
1 parent 96b2b85 commit 42e3daa

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.env.example

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ LOG_CHANNEL=stack
88
LOG_DEPRECATIONS_CHANNEL=null
99
LOG_LEVEL=debug
1010

11-
DB_CONNECTION=mysql
12-
DB_HOST=127.0.0.1
13-
DB_PORT=3306
14-
DB_DATABASE=laravel_dompdf_api
15-
DB_USERNAME=root
16-
DB_PASSWORD=
11+
DB_CONNECTION=sqlite
12+
#DB_HOST=127.0.0.1
13+
#DB_PORT=3306
14+
#DB_DATABASE=laravel_dompdf_api
15+
#DB_USERNAME=root
16+
#DB_PASSWORD=
1717

1818
BROADCAST_DRIVER=log
1919
CACHE_DRIVER=file

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Generate app key
1919
run: php artisan key:generate
2020
- name: Run migrations
21-
run: php artisan migrate --seed
21+
run: php artisan migrate --force
2222
- name: Run PHPUnit tests
2323
run: vendor/bin/phpunit
2424
- name: Run PHPStan analysis

config/database.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
|
1616
*/
1717

18-
'default' => env('DB_CONNECTION', 'mysql'),
18+
'default' => env('DB_CONNECTION', 'sqlite'),
1919

2020
/*
2121
|--------------------------------------------------------------------------

0 commit comments

Comments
 (0)