made migrations files
This commit is contained in:
parent
c780295bf7
commit
26161102f5
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
require_once "bootstrap.php";
|
||||
use Illuminate\Database\Capsule\Manager as Capsule;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
Capsule::schema()->create("Group", function (Blueprint $table){
|
||||
$table->id();
|
||||
$table->string("gameLink");
|
||||
$table->boolean("isWebBased");
|
||||
});
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
require_once "Backend\Bootstrap.php";
|
||||
use Illuminate\Database\Capsule\Manager as Capsule;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
Capsule::schema()->create("Group", function (Blueprint $table){
|
||||
$table->id();
|
||||
$table->string("name");
|
||||
$table->dateTime("startTime");
|
||||
$table->dateTime("endTime");
|
||||
$table->string("keyWord")->nullable();
|
||||
$table->text("description")->nullable();
|
||||
});
|
|
@ -4,9 +4,13 @@ use Illuminate\Database\Capsule\Manager as Capsule;
|
|||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
Capsule::schema()->create("Group", function ($tabel){
|
||||
$tabel->id();
|
||||
$tabel->string("groupName");
|
||||
$tabel->int("groupAmount");
|
||||
$tabel->int("votes");
|
||||
Capsule::schema()->create("Group", function (Blueprint $table){
|
||||
$table->id();
|
||||
$table->string("groupName");
|
||||
$table->integer("groupAmount");
|
||||
$table->foreignId("fkGameJam")->constrained("GameData");
|
||||
$table->integer("votes")->nullable();
|
||||
$table->foreignId("fkPassword")->constrained("Password");
|
||||
$table->foreignId("fkGameData")->nullable()->constrained("GameData");
|
||||
$table->timestamp();
|
||||
});
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
require_once "bootstrap.php";
|
||||
use Illuminate\Database\Capsule\Manager as Capsule;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
Capsule::schema()->create("Group", function (Blueprint $table){
|
||||
$table->id();
|
||||
$table->string('keyWord');
|
||||
$table->foreignId("fkGroup")->constrained("Group");
|
||||
});
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
require_once "bootstrap.php";
|
||||
use Illuminate\Database\Capsule\Manager as Capsule;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
Capsule::schema()->create("Group", function (Blueprint $table){
|
||||
$table->id();
|
||||
$table->string('password');
|
||||
$table->rememberToken();
|
||||
});
|
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
|
||||
include_once "GameJam.php";
|
||||
include_once "GameData.php";
|
||||
include_once "Password.php";
|
||||
include_once "Group.php";
|
||||
include_once "KeyWord.php";
|
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
require_once "bootstrap.php";
|
||||
use Illuminate\Database\Capsule\Manager as Capsule;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
Capsule::schema()->create("Group", function (Blueprint $table){
|
||||
$table->id();
|
||||
});
|
|
@ -5,7 +5,7 @@ $capsule = new Capsule;
|
|||
$capsule->addConnection([
|
||||
"driver" => "mysql",
|
||||
"host" =>"127.0.0.1",
|
||||
"database" => "acl",
|
||||
"database" => "gamejamdb",
|
||||
"username" => "root",
|
||||
"password" => ""
|
||||
]);
|
||||
|
|
Loading…
Reference in New Issue