Skip to content

Commit

Permalink
Update 20181029002222_gewear_canvas_init.php
Browse files Browse the repository at this point in the history
  • Loading branch information
kaioken authored Jun 30, 2020
1 parent b2ba81b commit 6db85db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions storage/db/migrations/20181029002222_gewear_canvas_init.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,8 @@ public function up()
->addColumn('is_deleted', 'boolean', ['null' => true, 'default' => '0', 'limit' => MysqlAdapter::INT_TINY, 'precision' => 3, 'after' => 'status'])
->save();

$this->execute('ALTER TABLE users ROW_FORMAT=DYNAMIC;');

$table = $this->table('users_associated_company', ['id' => false, 'primary_key' => ['users_id', 'companies_id'], 'engine' => 'InnoDB', 'encoding' => 'utf8mb4', 'collation' => 'utf8mb4_unicode_ci', 'comment' => '', 'row_format' => 'Compact']);
$table->addColumn('users_id', 'integer', ['null' => false, 'limit' => MysqlAdapter::INT_REGULAR, 'precision' => 10])
->addColumn('companies_id', 'integer', ['null' => false, 'limit' => MysqlAdapter::INT_REGULAR, 'precision' => 10, 'after' => 'users_id'])
Expand Down

0 comments on commit 6db85db

Please sign in to comment.