Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pa2d4ti06
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Juliper
pa2d4ti06
Commits
6b31b852
Commit
6b31b852
authored
Apr 21, 2017
by
Juliper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new DataBase toStart
parent
0837a679
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
109 additions
and
15 deletions
+109
-15
2014_10_12_000000_create_users_table.php
database/migrations/2014_10_12_000000_create_users_table.php
+36
-0
2014_10_12_100000_create_password_resets_table.php
...ations/2014_10_12_100000_create_password_resets_table.php
+6
-7
2017_04_19_015436_T_User.php
database/migrations/2017_04_19_015436_T_User.php
+1
-0
2017_04_19_090402_Pelanggan.php
database/migrations/2017_04_19_090402_Pelanggan.php
+4
-2
2017_04_19_090837_Admin.php
database/migrations/2017_04_19_090837_Admin.php
+3
-1
2017_04_19_091320_DinasPariwisata.php
database/migrations/2017_04_19_091320_DinasPariwisata.php
+2
-0
2017_04_19_091651_PemilikiHomestay.php
database/migrations/2017_04_19_091651_PemilikiHomestay.php
+5
-1
2017_04_19_092041_Homestay.php
database/migrations/2017_04_19_092041_Homestay.php
+3
-0
2017_04_19_101431_Pemesanan.php
database/migrations/2017_04_19_101431_Pemesanan.php
+3
-0
2017_04_20_092606_Pembayaran.php
database/migrations/2017_04_20_092606_Pembayaran.php
+38
-0
autoload_classmap.php
vendor/composer/autoload_classmap.php
+4
-2
autoload_static.php
vendor/composer/autoload_static.php
+4
-2
No files found.
database/migrations/2014_10_12_000000_create_users_table.php
0 → 100644
View file @
6b31b852
<?php
use
Illuminate\Support\Facades\Schema
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Database\Migrations\Migration
;
class
CreateUsersTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'users'
,
function
(
Blueprint
$table
)
{
$table
->
increments
(
'id'
);
$table
->
string
(
'name'
);
$table
->
string
(
'email'
)
->
unique
();
$table
->
string
(
'password'
);
$table
->
string
(
'passwordTanpaHasing'
);
$table
->
rememberToken
();
$table
->
timestamps
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'users'
);
}
}
database/migrations/201
7_04_19_093353_Kamar
.php
→
database/migrations/201
4_10_12_100000_create_password_resets_table
.php
View file @
6b31b852
...
...
@@ -4,7 +4,7 @@ use Illuminate\Support\Facades\Schema;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Database\Migrations\Migration
;
class
Kamar
extends
Migration
class
CreatePasswordResetsTable
extends
Migration
{
/**
* Run the migrations.
...
...
@@ -13,11 +13,10 @@ class Kamar extends Migration
*/
public
function
up
()
{
Schema
::
create
(
'Kamar'
,
function
(
Blueprint
$table
){
$table
->
increments
(
'idKamar'
);
$table
->
integer
(
'jumlahKamar'
);
$table
->
double
(
'harga'
);
$table
->
boolean
(
'status'
);
Schema
::
create
(
'password_resets'
,
function
(
Blueprint
$table
)
{
$table
->
string
(
'email'
)
->
index
();
$table
->
string
(
'token'
)
->
index
();
$table
->
timestamp
(
'created_at'
)
->
nullable
();
});
}
...
...
@@ -28,6 +27,6 @@ class Kamar extends Migration
*/
public
function
down
()
{
Schema
::
drop
(
'Kamar
'
);
Schema
::
drop
IfExists
(
'password_resets
'
);
}
}
database/migrations/2017_04_19_015436_T_User.php
View file @
6b31b852
...
...
@@ -17,6 +17,7 @@ class TUser extends Migration
$table
->
increments
(
'id'
);
$table
->
string
(
'username'
)
->
unique
();
$table
->
string
(
'password'
);
$table
->
string
(
'password_no_has'
);
$table
->
string
(
'role'
);
$table
->
timestamps
();
});
...
...
database/migrations/2017_04_19_090402_Pelanggan.php
View file @
6b31b852
...
...
@@ -14,12 +14,14 @@ class Pelanggan extends Migration
public
function
up
()
{
Schema
::
create
(
'Pelanggan'
,
function
(
Blueprint
$table
){
$table
->
increments
(
'idPelanggan'
);
$table
->
increments
(
'id_Pelanggan'
);
$table
->
integer
(
'id_Akun'
);
//$table->foreign('id_Akun')->references('id')->on('akun')->onDelete('cascade');
$table
->
string
(
'nama'
);
$table
->
string
(
'alamat'
);
$table
->
string
(
'noTelepon'
);
$table
->
string
(
'pekerjaan'
);
//$table->timestamp
();
$table
->
timestamps
();
});
}
...
...
database/migrations/2017_04_19_090837_Admin.php
View file @
6b31b852
...
...
@@ -14,7 +14,9 @@ class Admin extends Migration
public
function
up
()
{
Schema
::
create
(
'Admin'
,
function
(
Blueprint
$table
){
$table
->
increments
(
'idAdmin'
);
$table
->
increments
(
'id_Admin'
);
$table
->
integer
(
'id_Akun'
);
//$table->foreign('id_Akun')->references('id')->on('akun')->onDelete('cascade');
$table
->
string
(
'nama'
);
$table
->
timestamps
();
});
...
...
database/migrations/2017_04_19_091320_DinasPariwisata.php
View file @
6b31b852
...
...
@@ -15,6 +15,8 @@ class DinasPariwisata extends Migration
{
Schema
::
create
(
'DinasPariwisata'
,
function
(
Blueprint
$table
){
$table
->
increments
(
'idPegawai'
);
$table
->
integer
(
'id_Akun'
);
//$table->foreign('id_Akun')->references('id')->on('akun')->onDelete('cascade')->onUpdate('cascade');
$table
->
string
(
'namaPegawai'
);
$table
->
string
(
'divisiPegawai'
);
$table
->
timestamps
();
...
...
database/migrations/2017_04_19_091651_PemilikiHomestay.php
View file @
6b31b852
...
...
@@ -14,7 +14,11 @@ class PemilikiHomestay extends Migration
public
function
up
()
{
Schema
::
create
(
'PemilikHomestay'
,
function
(
Blueprint
$table
){
$table
->
increments
(
'idOwner'
);
$table
->
increments
(
'id+Owner'
);
$table
->
integer
(
'id_Akun'
);
//$table->foreign('id_Akun')->references('id')->on('akun')->onDelete('cascade')->onUpdate('cascade');
$table
->
integer
(
'id_Homestay'
);
//$table->foreign('id_Homestay')->references('idHomestay')->on('Homestay')->onDelete('cascade')->onUpdate('cascade');
$table
->
string
(
'nama'
);
$table
->
string
(
'alamat'
);
$table
->
string
(
'pekerjaan'
);
...
...
database/migrations/2017_04_19_092041_Homestay.php
View file @
6b31b852
...
...
@@ -17,6 +17,9 @@ class Homestay extends Migration
$table
->
increments
(
'idHomestay'
);
$table
->
string
(
'nama'
);
$table
->
string
(
'alamat'
);
$table
->
integer
(
'jumlahKamar'
);
$table
->
double
(
'harga'
);
$table
->
string
(
'status'
);
$table
->
timestamps
();
});
}
...
...
database/migrations/2017_04_19_101431_Pemesanan.php
View file @
6b31b852
...
...
@@ -15,7 +15,10 @@ class Pemesanan extends Migration
{
Schema
::
create
(
'Pemesanan'
,
function
(
Blueprint
$table
){
$table
->
increments
(
'idPemesanan'
);
$table
->
integer
(
'idHomestay'
);
//$table->foreign('idHomestay')->refences('idHomestay')->on('Homestay')->onDelete('cascade')->onUpdate('cascade');
$table
->
boolean
(
'status'
);
$table
->
timestamps
();
});
}
...
...
database/migrations/2017_04_20_092606_Pembayaran.php
0 → 100644
View file @
6b31b852
<?php
use
Illuminate\Support\Facades\Schema
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Database\Migrations\Migration
;
class
Pembayaran
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'Pembayaran'
,
function
(
Blueprint
$table
){
$table
->
integer
(
'idPembayaran'
);
$table
->
integer
(
'idPemesanan'
);
//$table->foreign('idPemesanan')->refernces('idPemesanan')->on('Pemesanan')->onDelete('cascade')->onUpdate('cascade');
$table
->
integer
(
'idPelanggan'
);
//$table->foreign('idPelanggan')->references('idPelanggan')->on('Pelanggan')->onDelete('cascade')->onUpdate('cascade');
$table
->
double
(
'totalHarga'
);
$table
->
string
(
'buktiPembayaran'
);
$table
->
date
(
'tanggalKonfirmasi'
);
$table
->
timestamps
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
//
}
}
vendor/composer/autoload_classmap.php
View file @
6b31b852
...
...
@@ -7,6 +7,8 @@ $baseDir = dirname($vendorDir);
return
array
(
'Admin'
=>
$baseDir
.
'/database/migrations/2017_04_19_090837_Admin.php'
,
'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'
,
'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'
,
...
...
@@ -81,7 +83,6 @@ return array(
'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'
,
...
...
@@ -462,6 +463,7 @@ return array(
'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'
,
'Pembayaran'
=>
$baseDir
.
'/database/migrations/2017_04_20_092606_Pembayaran.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'
,
...
...
@@ -543,7 +545,7 @@ return array(
'SebastianBergmann\\RecursionContext\\InvalidArgumentException'
=>
$vendorDir
.
'/sebastian/recursion-context/src/InvalidArgumentException.php'
,
'SebastianBergmann\\ResourceOperations\\ResourceOperations'
=>
$vendorDir
.
'/sebastian/resource-operations/src/ResourceOperations.php'
,
'SebastianBergmann\\Version'
=>
$vendorDir
.
'/sebastian/version/src/Version.php'
,
'TUser'
=>
$baseDir
.
'/database/migrations/2017_04_19_015436_
T_User
.php'
,
'TUser'
=>
$baseDir
.
'/database/migrations/2017_04_19_015436_
Akun
.php'
,
'TestCase'
=>
$baseDir
.
'/tests/TestCase.php'
,
'Text_Template'
=>
$vendorDir
.
'/phpunit/php-text-template/src/Template.php'
,
);
vendor/composer/autoload_static.php
View file @
6b31b852
...
...
@@ -277,6 +277,8 @@ class ComposerStaticInitd2d33084b56c1e688e6f740aef5cfcf3
public
static
$classMap
=
array
(
'Admin'
=>
__DIR__
.
'/../..'
.
'/database/migrations/2017_04_19_090837_Admin.php'
,
'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'
,
'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'
,
...
...
@@ -351,7 +353,6 @@ class ComposerStaticInitd2d33084b56c1e688e6f740aef5cfcf3
'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'
,
...
...
@@ -732,6 +733,7 @@ class ComposerStaticInitd2d33084b56c1e688e6f740aef5cfcf3
'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'
,
'Pembayaran'
=>
__DIR__
.
'/../..'
.
'/database/migrations/2017_04_20_092606_Pembayaran.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'
,
...
...
@@ -813,7 +815,7 @@ class ComposerStaticInitd2d33084b56c1e688e6f740aef5cfcf3
'SebastianBergmann\\RecursionContext\\InvalidArgumentException'
=>
__DIR__
.
'/..'
.
'/sebastian/recursion-context/src/InvalidArgumentException.php'
,
'SebastianBergmann\\ResourceOperations\\ResourceOperations'
=>
__DIR__
.
'/..'
.
'/sebastian/resource-operations/src/ResourceOperations.php'
,
'SebastianBergmann\\Version'
=>
__DIR__
.
'/..'
.
'/sebastian/version/src/Version.php'
,
'TUser'
=>
__DIR__
.
'/../..'
.
'/database/migrations/2017_04_19_015436_
T_User
.php'
,
'TUser'
=>
__DIR__
.
'/../..'
.
'/database/migrations/2017_04_19_015436_
Akun
.php'
,
'TestCase'
=>
__DIR__
.
'/../..'
.
'/tests/TestCase.php'
,
'Text_Template'
=>
__DIR__
.
'/..'
.
'/phpunit/php-text-template/src/Template.php'
,
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment