1
0
mirror of https://github.com/robonen/education-project.git synced 2026-03-20 10:54:31 +00:00

исправил конфликты после обновления ветки

This commit is contained in:
ashen-1-dev
2020-12-16 20:57:35 +07:00
24 changed files with 427 additions and 168 deletions

View File

@@ -0,0 +1,42 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateChatLinksTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('chat_links', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('link');
$table->unsignedInteger('class_id');
$table->unsignedInteger('creator');
$table->timestamps();
$table->foreign('class_id')
->references('id')->on('school_classes')
->onDelete('cascade');
$table->foreign('creator')
->references('id')->on('users')
->onDelete('cascade');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('chat_links');
}
}