fixes
This commit is contained in:
@@ -1,34 +0,0 @@
|
||||
<?php
|
||||
//Migrations acts as a version control for the database allowing you to modify the app's database schema
|
||||
|
||||
//allows use of necessary libraries
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreatePasswordResetsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('password_resets', function (Blueprint $table) {
|
||||
$table->string('email')->index();
|
||||
$table->string('token');
|
||||
$table->timestamp('created_at')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('password_resets');
|
||||
}
|
||||
}
|
||||
@@ -20,9 +20,11 @@ class CreateWashingReservations extends Migration
|
||||
$table->timestamp("time");
|
||||
$table->timestamps();
|
||||
$table->unsignedBigInteger('machine_id');
|
||||
$table->foreign("machine_id")->references('id')->on('washing_machines');
|
||||
|
||||
$table->foreignid("machine_id")->constrained("washing_machines", "id");
|
||||
$table->unsignedBigInteger('user_id');
|
||||
$table->foreign("user_id")->references('id')->on('users');
|
||||
|
||||
$table->foreignid("user_id")->constrained("users", "id");
|
||||
$table->unique(['time', 'machine_id']);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
<?php
|
||||
//Migrations acts as a version control for the database allowing you to modify the app's database schema
|
||||
|
||||
//allows use of necessary libraries
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateCalendarDates extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('calendar_dates', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('calendar_dates');
|
||||
}
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
<?php
|
||||
//Migrations acts as a version control for the database allowing you to modify the app's database schema
|
||||
|
||||
//allows use of necessary libraries
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateCalendarEvents extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('calendar_events', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('calendar_events');
|
||||
}
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
<?php
|
||||
//Migrations acts as a version control for the database allowing you to modify the app's database schema
|
||||
|
||||
//allows use of necessary libraries
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateAlbumsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('albums', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->timestamps();
|
||||
$table->foreignId('user_id')->constrained();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('albums');
|
||||
}
|
||||
}
|
||||
@@ -22,7 +22,7 @@ class CreateResourceExtension extends Migration
|
||||
$table->unsignedInteger("resource_category_id");
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign("resource_category_id")->references("id")->on("resource_categories");
|
||||
$table->foreignid("resource_category_id")->constrained("resource_categories", "id");
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ class CreateResource extends Migration
|
||||
$table->unsignedInteger("extension_id");
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign("extension_id")->references("id")->on("resource_extensions");
|
||||
$table->foreignid("extension_id")->constrained("resource_extensions", "id");
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -20,8 +20,8 @@ class CreateUserEventsTable extends Migration
|
||||
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign("user_id")->references("id")->on("users");
|
||||
$table->foreign("event_id")->references("id")->on("events");
|
||||
$table->foreignid("user_id")->constrained("users", "id");
|
||||
$table->foreignid("event_id")->constrained("events", "id");
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user