renamed table from Prices to mineral_prices to be more descriptive
This commit is contained in:
@@ -7,7 +7,7 @@ use Illuminate\Database\Eloquent\Model;
|
||||
class MineralPrice extends Model
|
||||
{
|
||||
// Table Name
|
||||
protected $table = 'Prices';
|
||||
protected $table = 'mineral_prices';
|
||||
|
||||
//Primary Key
|
||||
public $primaryKey = 'id';
|
||||
|
||||
@@ -66,8 +66,8 @@ class CreateConfigTable extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
if(!Schema::hasTable('Prices')) {
|
||||
Schema::create('Prices', function (Blueprint $table) {
|
||||
if(!Schema::hasTable('mineral_prices')) {
|
||||
Schema::create('mineral_prices', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('Name');
|
||||
$table->integer('ItemId');
|
||||
@@ -98,7 +98,7 @@ class CreateConfigTable extends Migration
|
||||
{
|
||||
Schema::dropIfExists('Config');
|
||||
Schema::dropIfExists('ItemComposition');
|
||||
Schema::dropIfExists('Prices');
|
||||
Schema::dropIfExists('mineral_prices');
|
||||
Schema::dropIfExists('OrePrices');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user