| 1: | <?php | 
| 2: |  | 
| 3: | use Illuminate\Database\Migrations\Migration; | 
| 4: | use Illuminate\Database\Schema\Blueprint; | 
| 5: | use Illuminate\Database\Capsule\Manager as Capsule; | 
| 6: |  | 
| 7: | class CreateAliasesTable extends Migration | 
| 8: | { | 
| 9: |  | 
| 10: |  | 
| 11: |  | 
| 12: |  | 
| 13: |  | 
| 14: | public function up() | 
| 15: | { | 
| 16: | Capsule::schema()->create('cpanel_aliases', function (Blueprint $table) { | 
| 17: | $table->id('Id'); | 
| 18: | $table->integer('IdUser')->default(0); | 
| 19: | $table->integer('IdAccount')->default(0); | 
| 20: | $table->string('Email')->default(''); | 
| 21: | $table->string('ForwardTo')->default(''); | 
| 22: | $table->string('FriendlyName')->default(''); | 
| 23: | $table->boolean('UseSignature')->default(false); | 
| 24: | $table->text('Signature'); | 
| 25: | $table->timestamp(\Aurora\System\Classes\Model::CREATED_AT)->nullable(); | 
| 26: | $table->timestamp(\Aurora\System\Classes\Model::UPDATED_AT)->nullable(); | 
| 27: | }); | 
| 28: | } | 
| 29: |  | 
| 30: |  | 
| 31: |  | 
| 32: |  | 
| 33: |  | 
| 34: |  | 
| 35: | public function down() | 
| 36: | { | 
| 37: | Capsule::schema()->dropIfExists('cpanel_aliases'); | 
| 38: | } | 
| 39: | } | 
| 40: |  |