new database
This commit is contained in:
@@ -1,17 +1,15 @@
|
||||
<?php
|
||||
//require bootstrap aka our database connection
|
||||
require_once realpath(dirname(__FILE__) ."/../../bootstrap.php");
|
||||
require_once realpath(dirname(__FILE__) . "/../../bootstrap.php");
|
||||
|
||||
use Illuminate\Database\Capsule\Manager as Capsule;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
//Create groups table with the rows as id, groupName, groupAmount, fkGameJam, votes, fkPassword, fkGameData and timestamp
|
||||
Capsule::schema()->create("groups", function (Blueprint $table){
|
||||
Capsule::schema()->create("groups", function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string("group_name");
|
||||
$table->integer("group_amount");
|
||||
$table->foreignId("game_jam_id")->constrained("game_jams");
|
||||
$table->foreignId("game_data_id")->nullable()->constrained("game_data");
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user