This commit is contained in:
Benjamin Takats
2023-01-28 21:48:20 +01:00
parent b9f3f0ba7b
commit 9f153e7630
23 changed files with 441 additions and 19 deletions

View File

@@ -0,0 +1,36 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
/**
* Run the migrations.
* @return void
*/
public function up()
{
Schema::table('cities', function (Blueprint $table) {
$table->json('osm_relation')
->nullable();
$table->json('simplified_geojson')
->nullable();
$table->unsignedBigInteger('population')
->nullable();
$table->string('population_date')
->nullable();
});
}
/**
* Reverse the migrations.
* @return void
*/
public function down()
{
Schema::table('cities', function (Blueprint $table) {
//
});
}
};

View File

@@ -125,6 +125,13 @@ class DatabaseSeeder extends Seeder
'longitude' => 8.65639,
'created_by' => 1,
]);
City::create([
'country_id' => 1,
'name' => 'Hessen',
'latitude' => 50.526501,
'longitude' => 9.004440,
'created_by' => 1,
]);
Venue::create([
'city_id' => 1,
'name' => 'The Blue Studio Coworking (Füssen)',
@@ -376,9 +383,9 @@ Deshalb werden Sie von mir in diesem Kurs leicht verständlich an das Thema hera
Artisan::call(ReadAndSyncPodcastFeeds::class);
Artisan::call(SyncOpenBooks::class);
Meetup::create([
'city_id' => 1,
'name' => 'Einundzwanzig ' . str()->random(5),
'telegram_link' => 'https://t.me/EinundzwanzigKempten',
'city_id' => 6,
'name' => 'Einundzwanzig Hessen',
'telegram_link' => 'https://t.me/EinundzwanzigHessen',
'created_by' => 1,
]);
MeetupEvent::create([