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 CreateChannelsTable extends Migration
8: {
9: /**
10: * Run the migrations.
11: *
12: * @return void
13: */
14: public function up()
15: {
16: Capsule::schema()->create('core_channels', function (Blueprint $table) {
17: $table->increments('Id');
18: $table->string('Login')->default('');
19: $table->string('Password')->default('');
20: $table->string('Description')->default('');
21: $table->json('Properties')->nullable();
22:
23: $table->timestamp(\Aurora\System\Classes\Model::CREATED_AT)->nullable();
24: $table->timestamp(\Aurora\System\Classes\Model::UPDATED_AT)->nullable();
25: });
26: }
27:
28: /**
29: * Reverse the migrations.
30: *
31: * @return void
32: */
33: public function down()
34: {
35: Capsule::schema()->dropIfExists('core_channels');
36: }
37: }
38: