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.
 
 
 
 

26 lines
713 B

<?php
use Movim\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateAffiliationsTable extends Migration
{
public function up()
{
$this->schema->create('affiliations', function (Blueprint $table) {
$table->string('server', 256);
$table->string('node', 256);
$table->enum('affiliation', ['member', 'none', 'outcast', 'owner', 'publisher', 'publish-only']);
$table->string('jid', 256)->index();
$table->unique(['server', 'node', 'jid']);
$table->index(['server', 'node']);
$table->timestamps();
});
}
public function down()
{
$this->schema->drop('affiliations');
}
}