Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F10701493
2021_01_26_150000_change_sku_descriptions.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
970 B
Referenced Files
None
Subscribers
None
2021_01_26_150000_change_sku_descriptions.php
View Options
<?php
use
Illuminate\Support\Facades\Schema
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Database\Migrations\Migration
;
// phpcs:ignore
class
ChangeSkuDescriptions
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
$beta_sku
=
\App\Sku
::
where
(
'title'
,
'beta'
)->
first
();
if
(
$beta_sku
)
{
$beta_sku
->
name
=
'Private Beta (invitation only)'
;
$beta_sku
->
description
=
'Access to the private beta program subscriptions'
;
$beta_sku
->
save
();
}
$meet_sku
=
\App\Sku
::
where
(
'title'
,
'meet'
)->
first
();
if
(
$meet_sku
)
{
$meet_sku
->
name
=
'Voice & Video Conferencing (public beta)'
;
$meet_sku
->
handler_class
=
'App
\H
andlers
\M
eet'
;
$meet_sku
->
save
();
}
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Sep 6, 10:53 PM (11 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1339865
Default Alt Text
2021_01_26_150000_change_sku_descriptions.php (970 B)
Attached To
Mode
R2 kolab
Attached
Detach File
Event Timeline
Log In to Comment