Commit 55c084a9 by Juliper

Add Migration

parent 6010e9cf
......@@ -13,7 +13,13 @@ class TUser extends Migration
*/
public function up()
{
//
Schema::create('akun', function (Blueprint $table) {
$table->increments('id');
$table->string('username')->unique();
$table->string('password');
$table->string('role');
$table->timestamps();
});
}
/**
......@@ -23,6 +29,6 @@ class TUser extends Migration
*/
public function down()
{
//
Schema::drop('akun');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class Pelanggan extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('Pelanggan',function (Blueprint $table){
$table->increments('idPelanggan');
$table->string('nama');
$table->string('alamat');
$table->string('noTelepon');
$table->string('pekerjaan');
$table->timestamp();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('Pelanggan');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class Admin extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::cretae('Admin',function (Blueprint $table){
$table->increments('idAdmin');
$table->string('nama');
$table->timestamp();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('Admin');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class DinasPariwisata extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('DinasPariwisata',function (Blueprint $table){
$table->increments('idPegawai');
$table->string('namaPegawai');
$table->string('divisiPegawai');
$table->timestamp();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('DinasPariwisata');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class PemilikiHomestay extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('PemilikHomestay',function (Blueprint $table){
$table->increments('idOwner');
$table->string('nama');
$table->string('alamat');
$table->string('pekerjaan');
$table->string('noTelepon');
$table->string('noRekening');
$table->timestamp();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('PemilikHomestay');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class Homestay extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('Homestay',function (Blueprint $table){
$table->increments('idHomestay');
$table->string('nama');
$table->string('alamat');
$table->timestamp();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('Homestay');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class Kamar extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('Kamar',function (Blueprint $table){
$table->increments('idKamar');
$table->integer('jumlahKamar');
$table->double('harga');
$table->boolean('status');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('Kamar');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class Pemesanan extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('Pemesanan',function (Blueprint $table){
$table->increments('idPemesanan');
$table->boolean('status');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('Pemesanan');
}
}
......@@ -6,9 +6,9 @@ $vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'CreatePasswordResetsTable' => $baseDir . '/database/migrations/2014_10_12_100000_create_password_resets_table.php',
'CreateUsersTable' => $baseDir . '/database/migrations/2014_10_12_000000_create_users_table.php',
'Admin' => $baseDir . '/database/migrations/2017_04_19_090837_Admin.php',
'DatabaseSeeder' => $baseDir . '/database/seeds/DatabaseSeeder.php',
'DinasPariwisata' => $baseDir . '/database/migrations/2017_04_19_091320_DinasPariwisata.php',
'File_Iterator' => $vendorDir . '/phpunit/php-file-iterator/src/Iterator.php',
'File_Iterator_Facade' => $vendorDir . '/phpunit/php-file-iterator/src/Facade.php',
'File_Iterator_Factory' => $vendorDir . '/phpunit/php-file-iterator/src/Factory.php',
......@@ -80,6 +80,8 @@ return array(
'Hamcrest\\Type\\IsString' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsString.php',
'Hamcrest\\Util' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Util.php',
'Hamcrest\\Xml\\HasXPath' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Xml/HasXPath.php',
'Homestay' => $baseDir . '/database/migrations/2017_04_19_092041_Homestay.php',
'Kamar' => $baseDir . '/database/migrations/2017_04_19_093353_Kamar.php',
'PHPUnit\\Framework\\Assert' => $vendorDir . '/phpunit/phpunit/src/ForwardCompatibility/Assert.php',
'PHPUnit\\Framework\\BaseTestListener' => $vendorDir . '/phpunit/phpunit/src/ForwardCompatibility/BaseTestListener.php',
'PHPUnit\\Framework\\TestCase' => $vendorDir . '/phpunit/phpunit/src/ForwardCompatibility/TestCase.php',
......@@ -459,6 +461,9 @@ return array(
'PHP_Token_XOR_EQUAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
'PHP_Token_YIELD' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
'PHP_Token_YIELD_FROM' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
'Pelanggan' => $baseDir . '/database/migrations/2017_04_19_090402_Pelanggan.php',
'Pemesanan' => $baseDir . '/database/migrations/2017_04_19_101431_Pemesanan.php',
'PemilikiHomestay' => $baseDir . '/database/migrations/2017_04_19_091651_PemilikiHomestay.php',
'SebastianBergmann\\CodeCoverage\\CodeCoverage' => $vendorDir . '/phpunit/php-code-coverage/src/CodeCoverage.php',
'SebastianBergmann\\CodeCoverage\\CoveredCodeNotExecutedException' => $vendorDir . '/phpunit/php-code-coverage/src/Exception/CoveredCodeNotExecutedException.php',
'SebastianBergmann\\CodeCoverage\\Driver\\Driver' => $vendorDir . '/phpunit/php-code-coverage/src/Driver/Driver.php',
......
......@@ -276,9 +276,9 @@ class ComposerStaticInitd2d33084b56c1e688e6f740aef5cfcf3
);
public static $classMap = array (
'CreatePasswordResetsTable' => __DIR__ . '/../..' . '/database/migrations/2014_10_12_100000_create_password_resets_table.php',
'CreateUsersTable' => __DIR__ . '/../..' . '/database/migrations/2014_10_12_000000_create_users_table.php',
'Admin' => __DIR__ . '/../..' . '/database/migrations/2017_04_19_090837_Admin.php',
'DatabaseSeeder' => __DIR__ . '/../..' . '/database/seeds/DatabaseSeeder.php',
'DinasPariwisata' => __DIR__ . '/../..' . '/database/migrations/2017_04_19_091320_DinasPariwisata.php',
'File_Iterator' => __DIR__ . '/..' . '/phpunit/php-file-iterator/src/Iterator.php',
'File_Iterator_Facade' => __DIR__ . '/..' . '/phpunit/php-file-iterator/src/Facade.php',
'File_Iterator_Factory' => __DIR__ . '/..' . '/phpunit/php-file-iterator/src/Factory.php',
......@@ -350,6 +350,8 @@ class ComposerStaticInitd2d33084b56c1e688e6f740aef5cfcf3
'Hamcrest\\Type\\IsString' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsString.php',
'Hamcrest\\Util' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Util.php',
'Hamcrest\\Xml\\HasXPath' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Xml/HasXPath.php',
'Homestay' => __DIR__ . '/../..' . '/database/migrations/2017_04_19_092041_Homestay.php',
'Kamar' => __DIR__ . '/../..' . '/database/migrations/2017_04_19_093353_Kamar.php',
'PHPUnit\\Framework\\Assert' => __DIR__ . '/..' . '/phpunit/phpunit/src/ForwardCompatibility/Assert.php',
'PHPUnit\\Framework\\BaseTestListener' => __DIR__ . '/..' . '/phpunit/phpunit/src/ForwardCompatibility/BaseTestListener.php',
'PHPUnit\\Framework\\TestCase' => __DIR__ . '/..' . '/phpunit/phpunit/src/ForwardCompatibility/TestCase.php',
......@@ -729,6 +731,9 @@ class ComposerStaticInitd2d33084b56c1e688e6f740aef5cfcf3
'PHP_Token_XOR_EQUAL' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
'PHP_Token_YIELD' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
'PHP_Token_YIELD_FROM' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
'Pelanggan' => __DIR__ . '/../..' . '/database/migrations/2017_04_19_090402_Pelanggan.php',
'Pemesanan' => __DIR__ . '/../..' . '/database/migrations/2017_04_19_101431_Pemesanan.php',
'PemilikiHomestay' => __DIR__ . '/../..' . '/database/migrations/2017_04_19_091651_PemilikiHomestay.php',
'SebastianBergmann\\CodeCoverage\\CodeCoverage' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/CodeCoverage.php',
'SebastianBergmann\\CodeCoverage\\CoveredCodeNotExecutedException' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Exception/CoveredCodeNotExecutedException.php',
'SebastianBergmann\\CodeCoverage\\Driver\\Driver' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/Driver/Driver.php',
......
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