Files
exchange-2.0/database/migrations/2014_10_11_100009_create_countries_table.php
T
CheeSiong dec78bf8d7 Create Currency Logic Class
Update Currency Selling Logic Class
Delete Currency Selling Logic Class
Create Currency Log Service Class
2020-11-29 12:39:36 +08:00

36 lines
777 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCountriesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('countries', function (Blueprint $table) {
$table->id();
$table->string('name')->nullable();
$table->string('short_code')->nullable();
$table->string('phone_code')->nullable();
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('countries');
}
}