update migration

This commit is contained in:
2020-11-28 00:05:00 +01:00
parent b7140d290f
commit bc46125a3e
2 changed files with 8 additions and 12 deletions

View File

@@ -11,10 +11,10 @@ class CreateImagesTable extends Migration
*
* @return void
*/
public function up()
public function up(): void
{
Schema::create('images', function (Blueprint $table) {
$table->integer('id', true);
$table->id();
$table->string('filename');
$table->dateTime('created_at');
$table->dateTime('updated_at');
@@ -27,7 +27,7 @@ class CreateImagesTable extends Migration
*
* @return void
*/
public function down()
public function down(): void
{
Schema::drop('images');
}