Commit 872601ca by Bagus Pambudi

migration tb agenda

parent 731d49e8
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateSwpAgendasDeTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('swp_agendas_de', 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();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('swp_agendas_de');
}
}
\ No newline at end of file
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateSwpAgendasEnTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('swp_agendas_en', 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();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('swp_agendas_en');
}
}
\ No newline at end of file
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateSwpAgendasSaTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('swp_agendas_sa', 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();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('swp_agendas_sa');
}
}
\ No newline at end of file
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateSwpAgendasTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('swp_agendas', 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();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('swp_agendas');
}
}
\ No newline at end of file
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateSwpAgendasZhTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('swp_agendas_zh', 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();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('swp_agendas_zh');
}
}
\ No newline at end of file
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