added values to migrations.

This commit is contained in:
Vedde 2020-06-10 12:29:18 +02:00
parent 2febf83348
commit 643ac9e3de
4 changed files with 5 additions and 3 deletions

View File

@ -15,7 +15,7 @@ class CreateWashingReservations extends Migration
{ {
Schema::create('washing_reservations', function (Blueprint $table) { Schema::create('washing_reservations', function (Blueprint $table) {
$table->id(); $table->id();
$table->time("time"); $table->timestamp("time");
$table->timestamps(); $table->timestamps();
}); });
} }

View File

@ -15,6 +15,8 @@ class CreateEvents extends Migration
{ {
Schema::create('events', function (Blueprint $table) { Schema::create('events', function (Blueprint $table) {
$table->id(); $table->id();
$table->string("name");
$table->string("description");
$table->timestamps(); $table->timestamps();
}); });
} }

View File

@ -15,6 +15,7 @@ class CreateWashingMachines extends Migration
{ {
Schema::create('washing_machines', function (Blueprint $table) { Schema::create('washing_machines', function (Blueprint $table) {
$table->id(); $table->id();
$table->string("name")->unique();
$table->timestamps(); $table->timestamps();
}); });
} }

View File

@ -13,9 +13,8 @@ class AlterWashingReservations extends Migration
*/ */
public function up() public function up()
{ {
//
}
}
/** /**
* Reverse the migrations. * Reverse the migrations.
* *