Skip to content

Commit

Permalink
chore: fix test issue due to field name changes on upstream repo
Browse files Browse the repository at this point in the history
Signed-off-by: Fery Wardiyanto <[email protected]>
  • Loading branch information
feryardiant committed May 9, 2024
1 parent ece7105 commit 0ddb133
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified database/nusa.sqlite
Binary file not shown.
4 changes: 2 additions & 2 deletions scripts/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static function import($event): void
{
require_once $event->getComposer()->getConfig()->get('vendor-dir').'/autoload.php';

Dotenv::createImmutable(\dirname(__DIR__))->safeLoad();
Dotenv::createImmutable(\dirname(__DIR__).'/workbench')->safeLoad();

$db = new static(
name: env('DB_NUSA', 'nusantara'),
Expand Down Expand Up @@ -78,7 +78,7 @@ private function fetchAll(): array
SELECT
w.kode, w.nama,
p.kodepos,
l.lat, l.lng, l.elv, l.tz, l.luas, l.penduduk, l.path
l.lat, l.lng, l.elv, l.tz, l.luas, l.penduduk, l.paths path
FROM wilayah w
LEFT JOIN wilayah_level_1_2 l ON w.kode = l.kode
LEFT JOIN kodewilayah2023 p on w.kode = p.kodewilayah
Expand Down

0 comments on commit 0ddb133

Please sign in to comment.