Skip to content

Commit

Permalink
Merge pull request #30 from cacpmw/master
Browse files Browse the repository at this point in the history
removed db::truncate as it caused errors when tables were used as FK
  • Loading branch information
ichtrojan authored Jan 7, 2020
2 parents a49aa0f + dce3bad commit bfd7f74
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/database/seeds/CitiesTableSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class CitiesTableSeeder extends Seeder
public function run()
{
$citiesTable = config('location.cities_table', 'cities');
DB::table($citiesTable)->truncate();

$cities = array(
array('name' => "Bombuflat",'state_id' => 1),
Expand Down
2 changes: 0 additions & 2 deletions src/database/seeds/CountriesTableSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ class CountriesTableSeeder extends Seeder
public function run()
{
$countriesTable = config('location.countries_table', 'countries');
DB::table($countriesTable)->truncate();

$countries = array(
array('id' => 1,'code' => 'AF' ,'name' => "Afghanistan",'phonecode' => 93),
array('id' => 2,'code' => 'AL' ,'name' => "Albania",'phonecode' => 355),
Expand Down
1 change: 0 additions & 1 deletion src/database/seeds/StatesTableSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class StatesTableSeeder extends Seeder
public function run()
{
$statesTable = config('location.states_table', 'states');
DB::table($statesTable)->truncate();

$states = array(
array('name' => "Andaman and Nicobar Islands",'country_id' => 101),
Expand Down

0 comments on commit bfd7f74

Please sign in to comment.