@@ -49,8 +49,8 @@ discard block |
||
49 | 49 | public function handle() |
50 | 50 | { |
51 | 51 | if ($this->option('force') == 'true' || $this->confirm("Are you sure you want to make a new table '{$this->config->get('cqrses.eventstore_table')}'" |
52 | - . " on connection '{$this->config->get('cqrses.eventstore_connection')}'" |
|
53 | - . " Do you wish to continue?") |
|
52 | + . " on connection '{$this->config->get('cqrses.eventstore_connection')}'" |
|
53 | + . " Do you wish to continue?") |
|
54 | 54 | ) { |
55 | 55 | try { |
56 | 56 | return $this->buildEventStoreTable(); |
@@ -67,16 +67,16 @@ discard block |
||
67 | 67 | protected function buildEventStoreTable() |
68 | 68 | { |
69 | 69 | Schema::connection($this->config->get('cqrses.eventstore_connection')) |
70 | - ->create($this->config->get('cqrses.eventstore_table'), |
|
71 | - function (Blueprint $table) { |
|
72 | - $table->increments('id'); |
|
73 | - $table->string('uuid', 56); |
|
74 | - $table->integer('playhead')->unsigned(); |
|
75 | - $table->text('metadata'); |
|
76 | - $table->longText('payload'); |
|
77 | - $table->timestamp('recorded_on', 32)->nullable()->index(); |
|
78 | - $table->string('type', 255)->index(); |
|
79 | - $table->unique(['uuid', 'playhead']); |
|
80 | - }); |
|
70 | + ->create($this->config->get('cqrses.eventstore_table'), |
|
71 | + function (Blueprint $table) { |
|
72 | + $table->increments('id'); |
|
73 | + $table->string('uuid', 56); |
|
74 | + $table->integer('playhead')->unsigned(); |
|
75 | + $table->text('metadata'); |
|
76 | + $table->longText('payload'); |
|
77 | + $table->timestamp('recorded_on', 32)->nullable()->index(); |
|
78 | + $table->string('type', 255)->index(); |
|
79 | + $table->unique(['uuid', 'playhead']); |
|
80 | + }); |
|
81 | 81 | } |
82 | 82 | } |
83 | 83 | \ No newline at end of file |