Changeset View
Changeset View
Standalone View
Standalone View
src/database/migrations/2021_01_26_150000_change_sku_descriptions.php
Show All 9 Lines | class ChangeSkuDescriptions extends Migration | ||||
/** | /** | ||||
* Run the migrations. | * Run the migrations. | ||||
* | * | ||||
* @return void | * @return void | ||||
*/ | */ | ||||
public function up() | public function up() | ||||
{ | { | ||||
$beta_sku = \App\Sku::where('title', 'beta')->first(); | $beta_sku = \App\Sku::where('title', 'beta')->first(); | ||||
if ($beta_sku) { | |||||
$beta_sku->name = 'Private Beta (invitation only)'; | $beta_sku->name = 'Private Beta (invitation only)'; | ||||
$beta_sku->description = 'Access to the private beta program subscriptions'; | $beta_sku->description = 'Access to the private beta program subscriptions'; | ||||
$beta_sku->save(); | $beta_sku->save(); | ||||
} | |||||
$meet_sku = \App\Sku::where('title', 'meet')->first(); | $meet_sku = \App\Sku::where('title', 'meet')->first(); | ||||
if ($meet_sku) { | |||||
$meet_sku->name = 'Voice & Video Conferencing (public beta)'; | $meet_sku->name = 'Voice & Video Conferencing (public beta)'; | ||||
$meet_sku->handler_class = 'App\Handlers\Meet'; | $meet_sku->handler_class = 'App\Handlers\Meet'; | ||||
$meet_sku->save(); | $meet_sku->save(); | ||||
} | } | ||||
} | |||||
/** | /** | ||||
* Reverse the migrations. | * Reverse the migrations. | ||||
* | * | ||||
* @return void | * @return void | ||||
*/ | */ | ||||
public function down() | public function down() | ||||
{ | { | ||||
} | } | ||||
} | } |