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