diff --git a/src/database/migrations/2020_12_28_140000_create_groups_table.php b/src/database/migrations/2020_12_28_140000_create_groups_table.php index 886b01e2..3d5b5b09 100644 --- a/src/database/migrations/2020_12_28_140000_create_groups_table.php +++ b/src/database/migrations/2020_12_28_140000_create_groups_table.php @@ -1,55 +1,42 @@ bigInteger('id'); $table->string('email')->unique(); $table->text('members')->nullable(); $table->smallInteger('status'); $table->timestamps(); $table->softDeletes(); $table->primary('id'); } ); - - if (!\App\Sku::where('title', 'group')->first()) { - \App\Sku::create([ - 'title' => 'group', - 'name' => 'Group', - 'description' => 'Distribution list', - 'cost' => 0, - 'units_free' => 0, - 'period' => 'monthly', - 'handler_class' => 'App\Handlers\Group', - 'active' => true, - ]); - } } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('groups'); } }