diff --git a/src/database/migrations/2020_10_29_100000_add_beta_skus.php b/src/database/migrations/2020_10_29_100000_add_beta_skus.php new file mode 100644 index 00000000..3cf3ed12 --- /dev/null +++ b/src/database/migrations/2020_10_29_100000_add_beta_skus.php @@ -0,0 +1,53 @@ +first()) { + \App\Sku::create([ + 'title' => 'beta', + 'name' => 'Beta program', + 'description' => 'Access to beta program subscriptions', + 'cost' => 0, + 'units_free' => 0, + 'period' => 'monthly', + 'handler_class' => 'App\Handlers\Beta', + 'active' => false, + ]); + } + + if (!\App\Sku::where('title', 'meet')->first()) { + \App\Sku::create([ + 'title' => 'meet', + 'name' => 'Video chat', + 'description' => 'Video conferencing tool', + 'cost' => 0, + 'units_free' => 0, + 'period' => 'monthly', + 'handler_class' => 'App\Handlers\Beta\Meet', + 'active' => true, + ]); + } + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // there's no need to remove these SKUs + } +}