D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
forge
/
almahero.online
/
database
/
migrations
/
Filename :
2022_03_12_120608_create_currencies_table.php
back
Copy
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('currencies', function (Blueprint $table) { $table->id(); $table->string('currency_code'); $table->string('symbol'); $table->string('currency_placement')->comment('before, after')->default('before'); $table->string('current_currency')->comment('on, off')->default('no'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('currencies'); } };