hasTable('radio')) { $table = $schema->createTable('radio'); $table->addColumn('id', 'integer', [ 'autoincrement' => true, 'notnull' => true, ]); $table->addColumn('station', 'string', [ 'notnull' => true, 'length' => 200 ]); $table->addColumn('user_id', 'string', [ 'notnull' => true, 'length' => 200, ]); $table->setPrimaryKey(['id']); $table->addIndex(['user_id'], 'radio_user_id_index'); } return $schema; } }