Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F10703604
2020_03_16_100000_create_payments.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
2020_03_16_100000_create_payments.php
View Options
<?php
use
Illuminate\Support\Facades\Schema
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Database\Migrations\Migration
;
// phpcs:ignore
class
CreatePayments
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'payments'
,
function
(
Blueprint
$table
)
{
$table
->
string
(
'id'
,
32
)->
primary
();
$table
->
string
(
'wallet_id'
,
36
);
$table
->
string
(
'status'
,
16
);
$table
->
integer
(
'amount'
);
$table
->
text
(
'description'
);
$table
->
string
(
'provider'
,
16
);
$table
->
string
(
'type'
,
16
);
$table
->
timestamp
(
'created_at'
)->
useCurrent
();
$table
->
timestamp
(
'updated_at'
)->
useCurrent
();
$table
->
foreign
(
'wallet_id'
)->
references
(
'id'
)->
on
(
'wallets'
)->
onDelete
(
'cascade'
);
}
);
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'payments'
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Sep 7, 11:41 AM (1 d, 7 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1314118
Default Alt Text
2020_03_16_100000_create_payments.php (1 KB)
Attached To
Mode
R2 kolab
Attached
Detach File
Event Timeline
Log In to Comment