feat: Implement VM restart, auto-renew invoice functionality, and client invoice detail API, alongside admin UI improvements.
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration {
|
||||
public function up(): void
|
||||
{
|
||||
if (!Schema::hasColumn('invoice', 'auto_renew')) {
|
||||
Schema::table('invoice', function (Blueprint $table) {
|
||||
$table->boolean('auto_renew')->default(false)->after('status');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
if (Schema::hasColumn('invoice', 'auto_renew')) {
|
||||
Schema::table('invoice', function (Blueprint $table) {
|
||||
$table->dropColumn('auto_renew');
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user