| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 1 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function down() |
||
| 31 | { |
||
| 32 | // Schema::table(\Config::get('countries.table_name'), function ($table) { |
||
| 33 | // \DB::statement("ALTER TABLE " . \DB::getTablePrefix() . \Config::get('countries.table_name') . " MODIFY country_code VARCHAR(3) NOT NULL DEFAULT ''"); |
||
| 34 | // \DB::statement("ALTER TABLE " . \DB::getTablePrefix() . \Config::get('countries.table_name') . " MODIFY iso_3166_2 VARCHAR(2) NOT NULL DEFAULT ''"); |
||
| 35 | // \DB::statement("ALTER TABLE " . \DB::getTablePrefix() . \Config::get('countries.table_name') . " MODIFY iso_3166_3 VARCHAR(3) NOT NULL DEFAULT ''"); |
||
| 36 | // \DB::statement("ALTER TABLE " . \DB::getTablePrefix() . \Config::get('countries.table_name') . " MODIFY region_code VARCHAR(3) NOT NULL DEFAULT ''"); |
||
| 37 | // \DB::statement("ALTER TABLE " . \DB::getTablePrefix() . \Config::get('countries.table_name') . " MODIFY sub_region_code VARCHAR(3) NOT NULL DEFAULT ''"); |
||
| 38 | // }); |
||
| 39 | } |
||
| 40 | |||
| 42 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.