Merge branch 'faiqahzaman' of https://gitlab.com/azfararsyad/lelong into faiqahzaman
This commit is contained in:
@@ -17,7 +17,6 @@ class CreateFileTable extends Migration
|
||||
$table->bigIncrements('id');
|
||||
$table->unsignedBigInteger('user_id')->unsigned();
|
||||
$table->string('file_type');
|
||||
$table->binary('filename');
|
||||
$table->datetime('deleted_at')->nullable();
|
||||
$table->integer('deleted_by')->nullable();
|
||||
$table->timestamps();
|
||||
@@ -26,6 +25,9 @@ class CreateFileTable extends Migration
|
||||
->references('id')->on('users')
|
||||
->onDelete('cascade');
|
||||
});
|
||||
|
||||
// once the table is created use a raw query to ALTER it and add the MEDIUMBLOB
|
||||
DB::statement("ALTER TABLE file ADD filename LONGBLOB");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user