Merge branch 'faiqahzaman' of https://gitlab.com/azfararsyad/lelong into faiqahzaman

This commit is contained in:
faiqahzaman
2022-03-10 16:34:47 +08:00
11 changed files with 244 additions and 89 deletions
@@ -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");
}
/**