Commit 56f749a9 by Aan Choesni Herlingga

create migration table

parent d86796d6
...@@ -16,9 +16,9 @@ class CreateTableCategories extends Migration ...@@ -16,9 +16,9 @@ class CreateTableCategories extends Migration
Schema::create('swp_categories', function (Blueprint $table) { Schema::create('swp_categories', function (Blueprint $table) {
$table->string('id', 32)->primary(); $table->string('id', 32)->primary();
$table->string('name'); $table->string('name');
$table->boolean('is_active'); $table->boolean('is_active')->nullable();
$table->string('userid_created', 32); $table->string('userid_created', 32)->nullable();
$table->string('userid_updated', 32); $table->string('userid_updated', 32)->nullable();
$table->timestamps(); $table->timestamps();
}); });
} }
...@@ -30,8 +30,6 @@ class CreateTableCategories extends Migration ...@@ -30,8 +30,6 @@ class CreateTableCategories extends Migration
*/ */
public function down() public function down()
{ {
Schema::table('swp_categories', function (Blueprint $table) { Schema::dropIfExists('swp_categories');
//
});
} }
} }
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateCategoriesFileTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('swp_categories_file', function (Blueprint $table) {
$table->string('id', 32)->primary();
$table->string('name');
$table->boolean('is_active')->nullable();
$table->string('userid_created', 32)->nullable();
$table->string('userid_updated', 32)->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('swp_categories_file');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateDesignTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('swp_design', function (Blueprint $table) {
$table->string('id', 32)->primary();
$table->string('name_design');
$table->string('title_design')->nullable();
$table->text('value_design')->nullable();
$table->integer('urutan')->nullable();
$table->string('userid_created', 32)->nullable();
$table->string('userid_updated', 32)->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('swp_design');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateFilesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('=swp_files', function (Blueprint $table) {
$table->string('id', 32);
$table->string('categories_file', 32);
$table->string('title');
$table->string('file');
$table->boolean('is_active')->nullable();
$table->integer('downloaded')->nullable();
$table->string('slug')->nullable();
$table->string('userid_created', 32)->nullable();
$table->string('userid_updated', 32)->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('=swp_files');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateFooterTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('swp_footer', function (Blueprint $table) {
$table->string('id', 32);
$table->text('row1')->nullable();
$table->text('row2')->nullable();
$table->text('row3')->nullable();
$table->text('row4')->nullable();
$table->string('userid_created', 32)->nullable();
$table->string('userid_updated', 32)->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('swp_footer');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateGaleriesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('swp_galeries', function (Blueprint $table) {
$table->string('id', 32);
$table->string('title');
$table->text('decription')->nullable();
$table->string('images')->nullable();
$table->string('userid_created', 32)->nullable();
$table->string('userid_updated', 32)->nullable();
$table->boolean('is_active')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('swp_galeries');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateInformationsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('swp_informations', function (Blueprint $table) {
$table->string('id', 32);
$table->string('title');
$table->text('content')->nullable();
$table->boolean('info_status')->nullable();
$table->integer('viewer')->nullable();
$table->string('slug')->nullable();
$table->date('event_date')->nullable();
$table->string('userid_created', 32)->nullable();
$table->string('userid_updated', 32)->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('swp_informations');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateMenusTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('swp_menus', function (Blueprint $table) {
$table->string('id', 32);
$table->string('name');
$table->string('url')->nullable();
$table->string('mode')->nullable();
$table->boolean('status')->nullable();
$table->integer('parent')->nullable();
$table->integer('urutan')->nullable();
$table->integer('parentlevel')->nullable();
$table->integer('level')->nullable();
$table->string('userid_created', 32)->nullable();
$table->string('userid_updated', 32)->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('swp_menus');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePagesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('swp_pages', function (Blueprint $table) {
$table->string('id', 32);
$table->string('title');
$table->text('content')->nullable();
$table->string('categories', 32);
$table->string('thumbnail')->nullable();
$table->timestamp('post_date')->nullable();
$table->boolean('post_status')->nullable();
$table->string('posts_password')->nullable();
$table->boolean('comment_status')->nullable();
$table->integer('viewer')->nullable();
$table->integer('comment_count')->nullable();
$table->string('slug')->nullable();
$table->string('userid_created', 32)->nullable();
$table->string('userid_updated', 32)->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('swp_pages');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePostsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('swp_posts', function (Blueprint $table) {
$table->string('id', 32);
$table->string('title');
$table->text('content')->nullable();
$table->string('categories', 32);
$table->string('thumbnail')->nullable();
$table->timestamp('post_date')->nullable();
$table->boolean('post_status')->nullable();
$table->string('posts_password')->nullable();
$table->boolean('comment_status')->nullable();
$table->integer('viewer')->nullable();
$table->integer('comment_count')->nullable();
$table->string('slug')->nullable();
$table->string('userid_created', 32)->nullable();
$table->string('userid_updated', 32)->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('swp_posts');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateSettingsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('swp_settings', function (Blueprint $table) {
$table->string('id', 32);
$table->string('name_setting');
$table->string('value_setting');
$table->string('userid_created', 32)->nullable();
$table->string('userid_updated', 32)->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('swp_settings');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateSlidersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('swp_sliders', function (Blueprint $table) {
$table->string('id', 32);
$table->string('title');
$table->string('images')->nullable();
$table->text('content')->nullable();
$table->boolean('is_active')->nullable();
$table->string('userid_created', 32)->nullable();
$table->string('userid_updated', 32)->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('swp_sliders');
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment