mirror of https://github.com/movim/movim
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
805 B
30 lines
805 B
<?php
|
|
|
|
use Movim\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
class CreateConferencesTable extends Migration
|
|
{
|
|
public function up()
|
|
{
|
|
$this->schema->create('conferences', function (Blueprint $table) {
|
|
$table->string('session_id', 64);
|
|
$table->string('conference', 128);
|
|
$table->string('name', 128);
|
|
$table->string('nick', 128)->nullable();
|
|
$table->boolean('autojoin')->default(false);
|
|
$table->timestamps();
|
|
|
|
$table->primary(['session_id', 'conference']);
|
|
|
|
$table->foreign('session_id')
|
|
->references('id')->on('sessions')
|
|
->onDelete('cascade');
|
|
});
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
$this->schema->drop('conferences');
|
|
}
|
|
}
|