vmailadmin/database/migrations/2020_03_15_072650_create_aliases_table.php
2020-05-23 15:20:01 +02:00

41 lines
940 B
PHP

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateAliasesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('aliases', function (Blueprint $table) {
$table->increments('id');
$table->string('source_username', 64);
$table->string('source_domain', 255);
$table->string('destination_username', 255);
$table->string('destination_domain', 255)->default('')->nullable();
$table->text('comment')->nullable();
$table->tinyInteger('enabled')->default('0');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('aliases');
}
}