Removed the currency symbol table migration and seeder
This commit is contained in:
parent
b72123db51
commit
e4dc9da03f
|
|
@ -1,5 +1,5 @@
|
|||
APP_NAME=Laravel
|
||||
APP_ENV=production
|
||||
APP_ENV=local
|
||||
APP_KEY=
|
||||
APP_DEBUG=true
|
||||
APP_URL=http://localhost
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
@ -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';
|
||||
}
|
||||
Loading…
Reference in New Issue