Created files for gallery
This commit is contained in:
+3
-3
@@ -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');
|
||||
}
|
||||
}
|
||||
+3
-3
@@ -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');
|
||||
}
|
||||
}
|
||||
+3
-3
@@ -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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user