diff options
author | Mateja <mail@matejamaric.com> | 2020-11-06 19:59:52 +0100 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2020-11-06 19:59:52 +0100 |
commit | 7907c1eecc37e5378da0e28838203c70c693ec71 (patch) | |
tree | 9857f84448852867b3cd85aece534478fb05d09e /database/migrations/2020_11_06_185340_create_images_table.php | |
parent | 34b559e17e7896ca5b19221187f77c063b68d8eb (diff) | |
download | yota-laravel-7907c1eecc37e5378da0e28838203c70c693ec71.tar.gz yota-laravel-7907c1eecc37e5378da0e28838203c70c693ec71.zip |
Gallery work...
Diffstat (limited to 'database/migrations/2020_11_06_185340_create_images_table.php')
-rw-r--r-- | database/migrations/2020_11_06_185340_create_images_table.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/database/migrations/2020_11_06_185340_create_images_table.php b/database/migrations/2020_11_06_185340_create_images_table.php new file mode 100644 index 0000000..5c03545 --- /dev/null +++ b/database/migrations/2020_11_06_185340_create_images_table.php @@ -0,0 +1,33 @@ +<?php + +use Illuminate\Database\Migrations\Migration; +use Illuminate\Database\Schema\Blueprint; +use Illuminate\Support\Facades\Schema; + +class CreateImagesTable extends Migration +{ + /** + * Run the migrations. + * + * @return void + */ + public function up() + { + Schema::create('images', function (Blueprint $table) { + $table->id(); + $table->string('name'); + $table->string('path'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('images'); + } +} |