getTable('share'); if (!$table->hasColumn('password_by_talk')) { $table->addColumn('password_by_talk', Types::BOOLEAN, [ 'default' => 0, 'notnull' => false, ]); } return $schema; } }