Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F120824457
2021_12_15_100000_rename_beta_skus.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
855 B
Referenced Files
None
Subscribers
None
2021_12_15_100000_rename_beta_skus.php
View Options
<?php
use
Illuminate\Support\Facades\Schema
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Database\Migrations\Migration
;
// phpcs:ignore
class
RenameBetaSkus
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
\App\Sku
::
where
(
'title'
,
'distlist'
)->
get
()->
each
(
function
(
$sku
)
{
$sku
->
title
=
'beta-distlists'
;
$sku
->
handler_class
=
'App
\H
andlers
\B
eta
\D
istlists'
;
$sku
->
save
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
\App\Sku
::
where
(
'title'
,
'beta-distlists'
)->
get
()->
each
(
function
(
$sku
)
{
$sku
->
title
=
'distlist'
;
$sku
->
handler_class
=
'App
\H
andlers
\D
istlist'
;
$sku
->
save
();
});
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Apr 24, 10:22 AM (5 h, 31 s ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18797460
Default Alt Text
2021_12_15_100000_rename_beta_skus.php (855 B)
Attached To
Mode
rK kolab
Attached
Detach File
Event Timeline