Removed the currency symbol table migration and seeder

This commit is contained in:
Prashant Singh 2019-02-11 13:19:49 +05:30
parent b72123db51
commit e4dc9da03f
4 changed files with 1 additions and 68 deletions

View File

@ -1,5 +1,5 @@
APP_NAME=Laravel
APP_ENV=production
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost

View File

@ -1,38 +0,0 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateCurrencyCodeSymbolTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('currency_code_symbol', function (Blueprint $table) {
$table->increments('id');
$table->string('symbol')->nullable();
$table->string('name')->nullable();
$table->string('symbol_native')->nullable();
$table->string('decimal_digits')->nullable();
$table->string('rounding')->nullable();
$table->string('code')->nullable();
$table->string('name_plural')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('currency_code_symbol');
}
}

View File

@ -1,18 +0,0 @@
<?php
namespace Webkul\Core\Database\Seeders;
use Illuminate\Database\Seeder;
use DB;
class CurrenySymbolTableSeeder extends Seeder
{
public function run()
{
DB::table('currency_code_symbol')->delete();
$currencies = json_decode(file_get_contents(__DIR__ . '/../../Data/currency_symbols.json'), true);
DB::table('currency_code_symbol')->insert($currencies);
}
}

View File

@ -1,11 +0,0 @@
<?php
namespace Webkul\Core\Models;
use Illuminate\Database\Eloquent\Model;
use Webkul\Core\Models\CurrencyExchangeRate;
class CurrencyCodeSymbol extends Model
{
protected $table = 'currency_code_symbol';
}