made migrations files

This commit is contained in:
neerholt 2021-03-03 11:01:32 +01:00
parent c780295bf7
commit 26161102f5
8 changed files with 73 additions and 6 deletions

View File

@ -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");
});

View File

@ -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();
});

View File

@ -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();
});

View File

@ -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");
});

View File

@ -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();
});

View File

@ -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";

View File

@ -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();
});

View File

@ -5,7 +5,7 @@ $capsule = new Capsule;
$capsule->addConnection([
"driver" => "mysql",
"host" =>"127.0.0.1",
"database" => "acl",
"database" => "gamejamdb",
"username" => "root",
"password" => ""
]);