Created files for gallery

This commit is contained in:
frederikpyt
2020-06-30 08:52:46 +02:00
parent fd87e133e9
commit 8445a22732
6 changed files with 237 additions and 12 deletions
@@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateGalleryAlbum extends Migration
class CreateAlbumsTable extends Migration
{
/**
* Run the migrations.
@@ -13,7 +13,7 @@ class CreateGalleryAlbum extends Migration
*/
public function up()
{
Schema::create('gallery_album', function (Blueprint $table) {
Schema::create('albums', function (Blueprint $table) {
$table->id();
$table->timestamps();
});
@@ -26,6 +26,6 @@ class CreateGalleryAlbum extends Migration
*/
public function down()
{
Schema::dropIfExists('gallery_album');
Schema::dropIfExists('albums');
}
}
@@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateGalleryVideo extends Migration
class CreateImagesTable extends Migration
{
/**
* Run the migrations.
@@ -13,7 +13,7 @@ class CreateGalleryVideo extends Migration
*/
public function up()
{
Schema::create('gallery_video', function (Blueprint $table) {
Schema::create('images', function (Blueprint $table) {
$table->id();
$table->timestamps();
});
@@ -26,6 +26,6 @@ class CreateGalleryVideo extends Migration
*/
public function down()
{
Schema::dropIfExists('gallery_video');
Schema::dropIfExists('images');
}
}
@@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateGalleryImage extends Migration
class CreateVideosTable extends Migration
{
/**
* Run the migrations.
@@ -13,7 +13,7 @@ class CreateGalleryImage extends Migration
*/
public function up()
{
Schema::create('gallery_image', function (Blueprint $table) {
Schema::create('videos', function (Blueprint $table) {
$table->id();
$table->timestamps();
});
@@ -26,6 +26,6 @@ class CreateGalleryImage extends Migration
*/
public function down()
{
Schema::dropIfExists('gallery_image');
Schema::dropIfExists('videos');
}
}