fixes
This commit is contained in:
parent
9d52e2e621
commit
2a3a728fa3
|
@ -19,7 +19,6 @@ class CreateResourceExtension extends Migration
|
||||||
$table->id();
|
$table->id();
|
||||||
$table->string("extension", 60)->unique();
|
$table->string("extension", 60)->unique();
|
||||||
$table->text("description");
|
$table->text("description");
|
||||||
$table->unsignedInteger("resource_category_id");
|
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
|
|
||||||
$table->foreignid("resource_category_id")->constrained("resource_categories", "id");
|
$table->foreignid("resource_category_id")->constrained("resource_categories", "id");
|
||||||
|
|
|
@ -18,7 +18,6 @@ class CreateResource extends Migration
|
||||||
Schema::create('resources', function (Blueprint $table) {
|
Schema::create('resources', function (Blueprint $table) {
|
||||||
$table->id();
|
$table->id();
|
||||||
$table->string("filename")->unique();
|
$table->string("filename")->unique();
|
||||||
$table->unsignedInteger("extension_id");
|
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
|
|
||||||
$table->foreignid("extension_id")->constrained("resource_extensions", "id");
|
$table->foreignid("extension_id")->constrained("resource_extensions", "id");
|
||||||
|
|
|
@ -15,8 +15,6 @@ class CreateUserEventsTable extends Migration
|
||||||
{
|
{
|
||||||
Schema::create('user_events', function (Blueprint $table) {
|
Schema::create('user_events', function (Blueprint $table) {
|
||||||
$table->id();
|
$table->id();
|
||||||
$table->integer("user_id");
|
|
||||||
$table->integer("event_id");
|
|
||||||
|
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue