new db migration

This commit is contained in:
2021-03-05 11:23:10 +01:00
parent 01f6e16283
commit d2182f5020
10 changed files with 29 additions and 50 deletions
+14
View File
@@ -0,0 +1,14 @@
<?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("votes", function (Blueprint $table){
$table->id();
$table->foreignId("group_id")->constrained("groups");
$table->tinyInteger("points");
$table->text("comment")->nullable();
$table->timestamps();
});