diff --git a/database/migrations/2022_06_16_092704_add_billing_period_to_products.php b/database/migrations/2022_06_16_092704_add_billing_period_to_products.php new file mode 100644 index 00000000..4018fb47 --- /dev/null +++ b/database/migrations/2022_06_16_092704_add_billing_period_to_products.php @@ -0,0 +1,35 @@ +string('billing_period')->default("hourly"); + }); + + DB::statement('UPDATE products SET billing_period="hourly"'); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('products', function (Blueprint $table) { + $table->dropColumn('billing_period'); + }); + } +}