Page MenuHomePhorge

2020_04_21_100000_create_wallet_settings.php
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

2020_04_21_100000_create_wallet_settings.php

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
// phpcs:ignore
class CreateWalletSettings extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create(
'wallet_settings',
function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('wallet_id');
$table->string('key');
$table->string('value');
$table->timestamp('created_at')->useCurrent();
$table->timestamp('updated_at')->useCurrent();
$table->foreign('wallet_id')->references('id')->on('wallets')->onDelete('cascade');
$table->unique(['wallet_id', 'key']);
}
);
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('wallet_settings');
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, Apr 6, 2:07 AM (1 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
0d/3c/6a27ab59ec7d63ba9953d7cf27b3
Default Alt Text
2020_04_21_100000_create_wallet_settings.php (1 KB)

Event Timeline