Commit 24b2761a by Bagus Pambudi

restore migration

parent 311fcc8f
......@@ -13,11 +13,11 @@ class CreatePasswordResetsTable extends Migration
*/
public function up()
{
// Schema::create('password_resets', function (Blueprint $table) {
// $table->string('email')->index();
// $table->string('token');
// $table->timestamp('created_at')->nullable();
// });
Schema::create('password_resets', function (Blueprint $table) {
$table->string('email')->index();
$table->string('token');
$table->timestamp('created_at')->nullable();
});
}
/**
......
......@@ -13,14 +13,14 @@ class CreateTableCategories extends Migration
*/
public function up()
{
// Schema::create('swp_categories', function (Blueprint $table) {
// $table->string('id', 36)->primary();
// $table->string('name');
// $table->boolean('is_active')->nullable();
// $table->string('userid_created', 36)->nullable();
// $table->string('userid_updated', 36)->nullable();
// $table->timestamps();
// });
Schema::create('swp_categories', function (Blueprint $table) {
$table->string('id', 36)->primary();
$table->string('name');
$table->boolean('is_active')->nullable();
$table->string('userid_created', 36)->nullable();
$table->string('userid_updated', 36)->nullable();
$table->timestamps();
});
}
/**
......
......@@ -13,14 +13,14 @@ class CreateCategoriesFileTable extends Migration
*/
public function up()
{
// Schema::create('swp_categories_file', function (Blueprint $table) {
// $table->string('id', 36)->primary();
// $table->string('name');
// $table->boolean('is_active')->nullable();
// $table->string('userid_created', 36)->nullable();
// $table->string('userid_updated', 36)->nullable();
// $table->timestamps();
// });
Schema::create('swp_categories_file', function (Blueprint $table) {
$table->string('id', 36)->primary();
$table->string('name');
$table->boolean('is_active')->nullable();
$table->string('userid_created', 36)->nullable();
$table->string('userid_updated', 36)->nullable();
$table->timestamps();
});
}
/**
......
......@@ -13,17 +13,17 @@ class CreateDesignTable extends Migration
*/
public function up()
{
// Schema::create('swp_design', function (Blueprint $table) {
// $table->string('id', 36)->primary();
// $table->string('name_design');
// $table->string('title_design')->nullable();
// $table->text('value_design')->nullable();
// $table->integer('urutan')->nullable();
// $table->boolean('title_show')->nullable();
// $table->string('userid_created', 36)->nullable();
// $table->string('userid_updated', 36)->nullable();
// $table->timestamps();
// });
Schema::create('swp_design', function (Blueprint $table) {
$table->string('id', 36)->primary();
$table->string('name_design');
$table->string('title_design')->nullable();
$table->text('value_design')->nullable();
$table->integer('urutan')->nullable();
$table->boolean('title_show')->nullable();
$table->string('userid_created', 36)->nullable();
$table->string('userid_updated', 36)->nullable();
$table->timestamps();
});
}
/**
......
......@@ -13,18 +13,18 @@ class CreateFilesTable extends Migration
*/
public function up()
{
// Schema::create('swp_files', function (Blueprint $table) {
// $table->string('id', 36)->primary();
// $table->string('categories_file', 36);
// $table->string('title');
// $table->string('file');
// $table->boolean('is_active')->nullable();
// $table->integer('downloaded')->nullable();
// $table->string('slug')->nullable();
// $table->string('userid_created', 36)->nullable();
// $table->string('userid_updated', 36)->nullable();
// $table->timestamps();
// });
Schema::create('swp_files', function (Blueprint $table) {
$table->string('id', 36)->primary();
$table->string('categories_file', 36);
$table->string('title');
$table->string('file');
$table->boolean('is_active')->nullable();
$table->integer('downloaded')->nullable();
$table->string('slug')->nullable();
$table->string('userid_created', 36)->nullable();
$table->string('userid_updated', 36)->nullable();
$table->timestamps();
});
}
/**
......
......@@ -13,16 +13,16 @@ class CreateGaleriesTable extends Migration
*/
public function up()
{
// Schema::create('swp_galeries', function (Blueprint $table) {
// $table->string('id', 36)->primary();
// $table->string('title');
// $table->text('decription')->nullable();
// $table->string('gallery')->nullable();
// $table->string('userid_created', 36)->nullable();
// $table->string('userid_updated', 36)->nullable();
// $table->boolean('is_active')->nullable();
// $table->timestamps();
// });
Schema::create('swp_galeries', function (Blueprint $table) {
$table->string('id', 36)->primary();
$table->string('title');
$table->text('decription')->nullable();
$table->string('gallery')->nullable();
$table->string('userid_created', 36)->nullable();
$table->string('userid_updated', 36)->nullable();
$table->boolean('is_active')->nullable();
$table->timestamps();
});
}
/**
......
......@@ -13,18 +13,18 @@ class CreateInformationsTable extends Migration
*/
public function up()
{
// Schema::create('swp_informations', function (Blueprint $table) {
// $table->string('id', 36)->primary();
// $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', 36)->nullable();
// $table->string('userid_updated', 36)->nullable();
// $table->timestamps();
// });
Schema::create('swp_informations', function (Blueprint $table) {
$table->string('id', 36)->primary();
$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', 36)->nullable();
$table->string('userid_updated', 36)->nullable();
$table->timestamps();
});
}
/**
......
......@@ -13,20 +13,20 @@ class CreateMenusTable extends Migration
*/
public function up()
{
// Schema::create('swp_menus', function (Blueprint $table) {
// $table->string('id', 36)->primary();
// $table->string('name');
// $table->string('url')->nullable();
// $table->string('mode')->nullable();
// $table->boolean('status')->nullable();
// $table->string('parent', 36)->nullable();
// $table->integer('urutan')->nullable();
// $table->integer('parentlevel')->nullable();
// $table->integer('level')->nullable();
// $table->string('userid_created', 36)->nullable();
// $table->string('userid_updated', 36)->nullable();
// $table->timestamps();
// });
Schema::create('swp_menus', function (Blueprint $table) {
$table->string('id', 36)->primary();
$table->string('name');
$table->string('url')->nullable();
$table->string('mode')->nullable();
$table->boolean('status')->nullable();
$table->string('parent', 36)->nullable();
$table->integer('urutan')->nullable();
$table->integer('parentlevel')->nullable();
$table->integer('level')->nullable();
$table->string('userid_created', 36)->nullable();
$table->string('userid_updated', 36)->nullable();
$table->timestamps();
});
}
/**
......
......@@ -13,23 +13,23 @@ class CreatePagesTable extends Migration
*/
public function up()
{
// Schema::create('swp_pages', function (Blueprint $table) {
// $table->string('id', 36)->primary();
// $table->string('title');
// $table->text('content')->nullable();
// $table->string('categories', 36)->nullable();
// $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', 36)->nullable();
// $table->string('userid_updated', 36)->nullable();
// $table->timestamps();
// });
Schema::create('swp_pages', function (Blueprint $table) {
$table->string('id', 36)->primary();
$table->string('title');
$table->text('content')->nullable();
$table->string('categories', 36)->nullable();
$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', 36)->nullable();
$table->string('userid_updated', 36)->nullable();
$table->timestamps();
});
}
/**
......
......@@ -13,24 +13,24 @@ class CreatePostsTable extends Migration
*/
public function up()
{
// Schema::create('swp_posts', function (Blueprint $table) {
// $table->string('id', 36)->primary();
// $table->string('title');
// $table->text('content')->nullable();
// $table->string('categories', 36)->nullable();
// $table->string('thumbnail')->nullable();
// $table->timestamp('post_date')->nullable();
// $table->boolean('post_status')->nullable();
// $table->boolean('cover_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', 36)->nullable();
// $table->string('userid_updated', 36)->nullable();
// $table->timestamps();
// });
Schema::create('swp_posts', function (Blueprint $table) {
$table->string('id', 36)->primary();
$table->string('title');
$table->text('content')->nullable();
$table->string('categories', 36)->nullable();
$table->string('thumbnail')->nullable();
$table->timestamp('post_date')->nullable();
$table->boolean('post_status')->nullable();
$table->boolean('cover_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', 36)->nullable();
$table->string('userid_updated', 36)->nullable();
$table->timestamps();
});
}
/**
......
......@@ -13,16 +13,16 @@ class CreateSlidersTable extends Migration
*/
public function up()
{
// Schema::create('swp_sliders', function (Blueprint $table) {
// $table->string('id', 36)->primary();
// $table->string('title');
// $table->string('slider')->nullable();
// $table->text('content')->nullable();
// $table->boolean('is_active')->nullable();
// $table->string('userid_created', 36)->nullable();
// $table->string('userid_updated', 36)->nullable();
// $table->timestamps();
// });
Schema::create('swp_sliders', function (Blueprint $table) {
$table->string('id', 36)->primary();
$table->string('title');
$table->string('slider')->nullable();
$table->text('content')->nullable();
$table->boolean('is_active')->nullable();
$table->string('userid_created', 36)->nullable();
$table->string('userid_updated', 36)->nullable();
$table->timestamps();
});
}
/**
......
......@@ -13,15 +13,15 @@ class CreatePostEnTable extends Migration
*/
public function up()
{
// Schema::create('swp_posts_en', function (Blueprint $table) {
// $table->string('id', 36)->primary();
// $table->string('post_id', 36);
// $table->string('title');
// $table->text('content')->nullable();
// $table->string('userid_created', 36)->nullable();
// $table->string('userid_updated', 36)->nullable();
// $table->timestamps();
// });
Schema::create('swp_posts_en', function (Blueprint $table) {
$table->string('id', 36)->primary();
$table->string('post_id', 36);
$table->string('title');
$table->text('content')->nullable();
$table->string('userid_created', 36)->nullable();
$table->string('userid_updated', 36)->nullable();
$table->timestamps();
});
}
/**
......
......@@ -13,14 +13,14 @@ class CreateCategoriesEnTable extends Migration
*/
public function up()
{
// Schema::create('swp_categories_en', function (Blueprint $table) {
// $table->string('id', 36)->primary();
// $table->string('category_id', 36);
// $table->string('name');
// $table->string('userid_created', 36)->nullable();
// $table->string('userid_updated', 36)->nullable();
// $table->timestamps();
// });
Schema::create('swp_categories_en', function (Blueprint $table) {
$table->string('id', 36)->primary();
$table->string('category_id', 36);
$table->string('name');
$table->string('userid_created', 36)->nullable();
$table->string('userid_updated', 36)->nullable();
$table->timestamps();
});
}
/**
......
......@@ -13,15 +13,15 @@ class CreatePagesEnTable extends Migration
*/
public function up()
{
// Schema::create('swp_pages_en', function (Blueprint $table) {
// $table->string('id', 36)->primary();
// $table->string('page_id', 36);
// $table->string('title');
// $table->text('content')->nullable();
// $table->string('userid_created', 36)->nullable();
// $table->string('userid_updated', 36)->nullable();
// $table->timestamps();
// });
Schema::create('swp_pages_en', function (Blueprint $table) {
$table->string('id', 36)->primary();
$table->string('page_id', 36);
$table->string('title');
$table->text('content')->nullable();
$table->string('userid_created', 36)->nullable();
$table->string('userid_updated', 36)->nullable();
$table->timestamps();
});
}
/**
......
......@@ -13,15 +13,15 @@ class CreateInformationsEnTable extends Migration
*/
public function up()
{
// Schema::create('swp_informations_en', function (Blueprint $table) {
// $table->string('id', 36)->primary();
// $table->string('information_id', 36);
// $table->string('title');
// $table->text('content')->nullable();
// $table->string('userid_created', 36)->nullable();
// $table->string('userid_updated', 36)->nullable();
// $table->timestamps();
// });
Schema::create('swp_informations_en', function (Blueprint $table) {
$table->string('id', 36)->primary();
$table->string('information_id', 36);
$table->string('title');
$table->text('content')->nullable();
$table->string('userid_created', 36)->nullable();
$table->string('userid_updated', 36)->nullable();
$table->timestamps();
});
}
/**
......
......@@ -13,14 +13,14 @@ class CrateMenuEnTable extends Migration
*/
public function up()
{
// Schema::create('swp_menus_en', function (Blueprint $table) {
// $table->string('id', 36)->primary();
// $table->string('menu_id', 36);
// $table->string('name');
// $table->string('userid_created', 36)->nullable();
// $table->string('userid_updated', 36)->nullable();
// $table->timestamps();
// });
Schema::create('swp_menus_en', function (Blueprint $table) {
$table->string('id', 36)->primary();
$table->string('menu_id', 36);
$table->string('name');
$table->string('userid_created', 36)->nullable();
$table->string('userid_updated', 36)->nullable();
$table->timestamps();
});
}
/**
......
......@@ -11,17 +11,17 @@ class UpdateKeyMigration extends Migration
*/
public function up()
{
// Schema::table('swp_posts', function (Blueprint $table) {
// $table->string('keys')->nullable();
// });
Schema::table('swp_posts', function (Blueprint $table) {
$table->string('keys')->nullable();
});
// Schema::table('swp_pages', function (Blueprint $table) {
// $table->string('keys')->nullable();
// });
Schema::table('swp_pages', function (Blueprint $table) {
$table->string('keys')->nullable();
});
// Schema::table('swp_informations', function (Blueprint $table) {
// $table->string('keys')->nullable();
// });
Schema::table('swp_informations', function (Blueprint $table) {
$table->string('keys')->nullable();
});
}
/**
......
......@@ -11,20 +11,20 @@ class CreateAutopostTable extends Migration
*/
public function up()
{
// Schema::create('swp_autopost', function (Blueprint $table) {
// $table->string('id', 36)->primary();
// $table->string('name');
// $table->string('type');
// $table->string('key_1')->nullable();
// $table->string('key_2')->nullable();
// $table->string('key_3')->nullable();
// $table->string('key_4')->nullable();
// $table->string('key_5')->nullable();
// $table->string('key_6')->nullable();
// $table->string('userid_created', 36)->nullable();
// $table->string('userid_updated', 36)->nullable();
// $table->timestamps();
// });
Schema::create('swp_autopost', function (Blueprint $table) {
$table->string('id', 36)->primary();
$table->string('name');
$table->string('type');
$table->string('key_1')->nullable();
$table->string('key_2')->nullable();
$table->string('key_3')->nullable();
$table->string('key_4')->nullable();
$table->string('key_5')->nullable();
$table->string('key_6')->nullable();
$table->string('userid_created', 36)->nullable();
$table->string('userid_updated', 36)->nullable();
$table->timestamps();
});
}
/**
......
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