From ee1d13576f9bfdf019a376b767fada35ca5acaa8 Mon Sep 17 00:00:00 2001 From: fatihalp Date: Fri, 24 Apr 2020 02:01:11 +0300 Subject: [PATCH] Remove districts and neighborhoods on standard installation --- .../visiosoft/location-module/src/LocationModuleSeeder.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/addons/default/visiosoft/location-module/src/LocationModuleSeeder.php b/addons/default/visiosoft/location-module/src/LocationModuleSeeder.php index c62b3d10e..7d7b8973d 100644 --- a/addons/default/visiosoft/location-module/src/LocationModuleSeeder.php +++ b/addons/default/visiosoft/location-module/src/LocationModuleSeeder.php @@ -22,15 +22,11 @@ class LocationModuleSeeder extends Seeder $repository = "https://raw.githubusercontent.com/openclassify/Openclassify-Demo-Data/master/"; file_put_contents(__DIR__ . "/countries.sql", fopen($repository . "countries.sql", 'r')); file_put_contents(__DIR__ . "/cities.sql", fopen($repository . "cities.sql", 'r')); - file_put_contents(__DIR__ . "/districts.sql", fopen($repository . "districts.sql", 'r')); - file_put_contents(__DIR__ . "/neighborhoods.sql", fopen($repository . "neighborhoods.sql", 'r')); /* Demo Start */ Model::unguard(); DB::unprepared(file_get_contents(__DIR__ . '/countries.sql')); DB::unprepared(file_get_contents(__DIR__ . '/cities.sql')); - DB::unprepared(file_get_contents(__DIR__ . '/districts.sql')); - DB::unprepared(file_get_contents(__DIR__ . '/neighborhoods.sql')); Model::reguard(); /* Demo Stop*/ }