hasTable('games')) { Schema::connection('pgsql_rauru')->create('games', function (Blueprint $table) { $table->increments('id'); $table->json('age_ratings'); $table->string('aggregated_rating'); $table->integer('aggregated_rating_count'); $table->json('alternative_names'); $table->json('artworks'); //$table->json('bundles'); $table->integer('category');//enum $table->uuid('checksum'); $table->string('collection'); $table->string('cover_id'); $table->string('cover_image_path'); $table->json('dlcs'); //$table->json('expanded_games'); $table->json('expansions'); $table->json('external_games');//IDs on other Platforms $table->date('first_release_date'); //$table->integer('follows'); //$table->json('forks'); $table->string('franchise'); $table->json('franchises'); $table->json('game_engines'); $table->json('game_localizations'); $table->json('game_modes'); $table->json('genres'); //$table->integer('hypes'); $table->json('involved_companies'); $table->json('keywords'); $table->json('language_supports'); $table->json('multiplayer_modes'); $table->string('name'); $table->string('parent_game'); $table->json('platforms'); $table->json('player_perspectives'); $table->json('ports'); $table->string('rating');//formated double //$table->integer('rating_count'); $table->json('release_dates'); $table->json('remakes'); $table->json('remasters'); $table->json('screenshots'); $table->json('similar_games'); $table->string('slug'); $table->json('standalone_expansions'); $table->integer('status');//enum $table->text('storyline'); $table->text('summary'); $table->json('tags'); $table->json('themes'); $table->string('total_rating');//formated double //$table->integer('total_rating_count'); //$table->date('updated_at'); $table->string('url');//IGDB Url $table->string('version_parent'); $table->string('version_title'); $table->json('videos'); $table->json('websites'); $table->timestamps(); }); } } /** * Reverse the migrations. */ public function down(): void { if (Schema::connection('pgsql_rauru')->hasTable('games')) { Schema::connection('pgsql_rauru')->dropIfExists('games'); } } };