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.
 
 
 
 

27 lines
746 B

<?php
use Movim\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateUsersTable extends Migration
{
public function up()
{
$this->schema->create('users', function (Blueprint $table) {
$table->string('id', 64);
$table->text('configuration')->nullable();
$table->string('language', 6)->nullable();
$table->string('cssurl', 128)->nullable();
$table->boolean('nightmode')->default(false);
$table->boolean('nsfw')->default(false);
$table->boolean('public')->nullable();
$table->primary('id');
$table->timestamps();
});
}
public function down()
{
$this->schema->drop('users');
}
}