Remove districts and neighborhoods on standard installation

This commit is contained in:
fatihalp 2020-04-24 02:01:11 +03:00
parent b8f06a16c4
commit ee1d13576f

View File

@ -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*/
}