Add payment cdm function
This commit is contained in:
@@ -16,6 +16,7 @@ class CreateFileresitTable extends Migration
|
||||
Schema::create('fileresit', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->unsignedBigInteger('user_id')->unsigned();
|
||||
$table->unsignedBigInteger('lelong_id')->unsigned();
|
||||
$table->unsignedBigInteger('payment_id')->unsigned();
|
||||
$table->string('file_type');
|
||||
$table->datetime('deleted_at')->nullable();
|
||||
@@ -26,9 +27,9 @@ class CreateFileresitTable extends Migration
|
||||
->references('id')->on('users')
|
||||
->onDelete('cascade');
|
||||
|
||||
$table->foreign('payment_id')
|
||||
->references('id')->on('payment')
|
||||
->onDelete('cascade');
|
||||
// $table->foreign('payment_id')
|
||||
// ->references('id')->on('payment')
|
||||
// ->onDelete('cascade');
|
||||
});
|
||||
|
||||
// once the table is created use a raw query to ALTER it and add the MEDIUMBLOB
|
||||
|
||||
Reference in New Issue
Block a user