feat: Enhance product creation UI with radio buttons and switch, correct product VPS OS foreign key, remove transaction UUID migration, and refactor customer add/edit views.
This commit is contained in:
@@ -17,7 +17,7 @@ return new class extends Migration
|
||||
$table->integer('product_type')->nullable();
|
||||
$table->unsignedBigInteger('os_id')->index();
|
||||
|
||||
$table->foreign('product_id')->references('id')->on('vps')->onDelete('cascade');
|
||||
$table->foreign('product_id')->references('id')->on('products')->onDelete('cascade');
|
||||
$table->foreign('os_id')->references('id')->on('os')->onDelete('cascade');
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration {
|
||||
public function up()
|
||||
{
|
||||
Schema::table('transactions', function (Blueprint $table) {
|
||||
$table->uuid('uuid')->unique()->nullable()->after('id');
|
||||
$table->string('public_code')->unique()->nullable()->after('uuid');
|
||||
});
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
Schema::table('transactions', function (Blueprint $table) {
|
||||
$table->dropColumn(['uuid', 'public_code']);
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user