Skip to content

Commit

Permalink
Merge branch 'main' of github.com:richan-fongdasen/turso-laravel
Browse files Browse the repository at this point in the history
  • Loading branch information
richan-fongdasen committed Apr 17, 2024
2 parents b56092c + 562a494 commit 6b4478e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

All notable changes to `richan-fongdasen/turso-laravel` will be documented in this file.

## 0.3.0 - 2024-04-16

* Fixed an error that occurred when dropping database indexes.
* Prevented the creation of a PDO object for the replica database if the path to the replica database is not set or empty.
* Automatically synced the replica database after running an Artisan command that updates the remote database (e.g., migration command).
* Fixed broken tests.
* Manually tested the replica database sync script.

## 0.2.0 - 2024-04-14

* Add support for Turso's embedded replica feature.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ Run the sync script programmatically using the following code:
use Illuminate\Support\Facades\DB;
use RichanFongdasen\Turso\Facades\Turso;

if ( DB::hasUpdated() ) {
if ( DB::connection('turso')->hasUpdated() ) {
// Run the sync script immediately
Turso::sync();

Expand Down

0 comments on commit 6b4478e

Please sign in to comment.