From 13e3f9a418b245ac8e67732ed1164a0d4bfa4d0c Mon Sep 17 00:00:00 2001 From: richan-fongdasen Date: Tue, 16 Apr 2024 16:24:48 +0000 Subject: [PATCH 1/2] Update CHANGELOG --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 729a760..0383c5c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. From 562a494fcf656369d9399d9f624975516ddf2c7c Mon Sep 17 00:00:00 2001 From: Richan Fongdasen Date: Tue, 16 Apr 2024 23:35:08 +0700 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6a6b3de..0594bf3 100644 --- a/README.md +++ b/README.md @@ -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();