Page MenuHomePhorge

2020_04_21_100000_create_wallet_settings.php
No OneTemporary

Authored By
Unknown
Size
980 B
Referenced Files
None
Subscribers
None

2020_04_21_100000_create_wallet_settings.php

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateWalletSettings extends Migration
{
/**
* Run the migrations.
*/
public function up()
{
Schema::create(
'wallet_settings',
static 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.
*/
public function down()
{
Schema::dropIfExists('wallet_settings');
}
}

File Metadata

Mime Type
text/x-php
Expires
Apr 4 2026, 12:05 AM (4 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18821619
Default Alt Text
2020_04_21_100000_create_wallet_settings.php (980 B)

Event Timeline