Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e7ad41aede | |||
| 70f7943c0f |
@@ -11,7 +11,10 @@ return new class extends Migration
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
//
|
||||
DB::table('airlines')
|
||||
->where('IATA_code', 'CM')
|
||||
->where('ICAO_code', 'CMP')
|
||||
->update(['logo' => 'CM_1.png']);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -19,6 +22,9 @@ return new class extends Migration
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
//
|
||||
DB::table('airlines')
|
||||
->where('IATA_code', 'CM')
|
||||
->where('ICAO_code', 'CMP')
|
||||
->update(['logo' => 'CM.png']);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
DB::table('airlines')
|
||||
->where('IATA_code', 'CM')
|
||||
->whereNull('ICAO_code')
|
||||
->update(['logo' => '']);
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
DB::table('airlines')
|
||||
->where('IATA_code', 'CM')
|
||||
->whereNull('ICAO_code')
|
||||
->update(['logo' => 'CM.png']);
|
||||
}
|
||||
};
|
||||
Generated
+1479
-25
File diff suppressed because it is too large
Load Diff
+2
-1
@@ -5,12 +5,13 @@
|
||||
"scripts": {
|
||||
"build": "vite build",
|
||||
"dev": "vite",
|
||||
"updateVersion": "docker build -t dredgy/flights-api:$npm_config_version -t dredgy/flights-api:latest . && docker push dredgy/flights-api:$npm_config_version && docker push dredgy/flights-api:latest"
|
||||
"updateVersion": "cross-var docker build -t dredgy/flights-api:$npm_config_tag -t dredgy/flights-api:latest . && cross-var docker push dredgy/flights-api:$npm_config_tag && docker push dredgy/flights-api:latest"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tailwindcss/vite": "^4.0.0",
|
||||
"axios": "^1.11.0",
|
||||
"concurrently": "^9.0.1",
|
||||
"cross-var": "^1.1.0",
|
||||
"laravel-vite-plugin": "^3.0.0",
|
||||
"tailwindcss": "^4.0.0",
|
||||
"vite": "^8.0.0"
|
||||
|
||||
Reference in New Issue
Block a user