/home/mip/mip/public/vendor/laravel-filemanager/files/folder-1/821668/migrations.zip
PK r@]�o�Z Z / client/2016_05_20_010746_create_roles_table.phpnu �Iw�� <?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateRolesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('roles', function (Blueprint $table) {
$table->engine = 'MYISAM';
$table->increments('id');
$table->string('name');
$table->string('display_name');
$table->string('description');
$table->timestamps();
});
DB::connection('qxcms')->table('roles')->truncate();
DB::connection('client')->table('roles')->insert([
[
'id'=>1,
'name' => 'Developer',
'display_name' => 'Developer',
'description' => 'Developer',
'created_at' => new \Carbon\Carbon,
'updated_at' => new \Carbon\Carbon
],
[
'id'=>2,
'name' => 'Admistrator',
'display_name' => 'Admistrator',
'description' => 'Admistrator',
'created_at' => new \Carbon\Carbon,
'updated_at' => new \Carbon\Carbon
],
[
'id'=>3,
'name' => 'Editor',
'display_name' => 'Editor',
'description' => 'Editor',
'created_at' => new \Carbon\Carbon,
'updated_at' => new \Carbon\Carbon
],
[
'id'=>4,
'name' => 'Field Officer',
'display_name' => 'Field Officer',
'description' => 'Field Officer',
'created_at' => new \Carbon\Carbon,
'updated_at' => new \Carbon\Carbon
]
]);
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('roles');
}
}
PK r@]��ڋ� � 8 client/2017_08_23_011601_create_posts_category_table.phpnu �Iw�� <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePostsCategoryTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('posts_category', function (Blueprint $table) {
$table->mediumIncrements('id');
$table->string('name', 30);
$table->string('slug', 30);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('posts_category');
}
}
PK r@]�oE}( ( 5 client/2018_04_17_141120_create_job_applied_table.phpnu �Iw�� <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateJobAppliedTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('job_applied', function (Blueprint $table) {
$table->engine = 'MYISAM';
$table->increments('id');
$table->integer('applicant_id')->unsigned()->index();
$table->integer('job_id')->unsigned()->index();
$table->date('apply_date');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('job_applied');
}
}
PK r@]nV�!} } 7 client/2017_08_17_005015_create_product_brand_table.phpnu �Iw�� <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateProductBrandTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('product_brand', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('product_brand');
}
}
PK r@]�d��F F 6 client/2017_09_13_101313_create_participants_table.phpnu �Iw�� <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateParticipantsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('survey_participants', function (Blueprint $table) {
$table->increments('id');
$table->integer('template_id')->unsigned()->index();
$table->string('email');
$table->string('name');
$table->string('loc_lat');
$table->string('loc_long');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('survey_participants');
}
}
PK r@]M�� � 2 client/2017_08_17_004853_create_products_table.phpnu �Iw�� <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateProductsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('products', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->integer('price');
$table->integer('category_id');
$table->integer('brand_id');
$table->string('year');
$table->longText('details');
$table->string('image');
$table->string('status');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('products');
}
}
PK r@]��G� � 4 client/2018_04_16_113317_create_contact_us_table.phpnu �Iw�� <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateContactUsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('contact_us', function (Blueprint $table) {
$table->engine = 'MYISAM';
$table->increments('id');
$table->string('name');
$table->string('email');
$table->string('contact');
$table->string('building_name');
$table->string('building_floor');
$table->string('rec_number');
$table->string('rec_street');
$table->string('rec_city');
$table->string('status');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('contact_us');
}
}
PK r@]�T�C; ; = client/2017_07_31_084448_create_principal_contact_persons.phpnu �Iw�� <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePrincipalContactPersons extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('principal_contact_persons', function (Blueprint $table) {
$table->increments('id');
$table->integer('principal_id')->unsigned()->index();
$table->string('name')->index();
$table->string('email');
$table->string('position');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('principal_contact_persons');
}
}
PK r@]ṉ�� � / client/2017_08_23_011705_create_posts_table.phpnu �Iw�� <?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('posts', function (Blueprint $table) {
$table->increments('id');
$table->mediumInteger('author_id')->unsigned();
$table->mediumInteger('posts_category_id')->unsigned()->nullable();
$table->string('title');
$table->longText('content');
$table->string('featured_image');
$table->text('excerpt');
$table->string('slug');
$table->enum('status', ['Publish', 'Draft', 'Inactive']);
$table->enum('visibility', ['Public', 'Private']);
$table->enum('post_type', ['Post', 'Page']);
$table->integer('post_parent_id')->nullable()->unsigned();
$table->date('published_at');
$table->date('expired_at')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('posts');
}
}
PK r@]o_�f f >