Compare commits

..

2 Commits

Author SHA1 Message Date
dredgy e7ad41aede Migration Fix 2026-04-01 16:02:19 +10:00
dredgy 70f7943c0f Migration Fix 2026-04-01 16:02:12 +10:00
4 changed files with 1519 additions and 28 deletions
@@ -11,7 +11,10 @@ return new class extends Migration
*/ */
public function up(): void 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 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']);
}
};
+1479 -25
View File
File diff suppressed because it is too large Load Diff
+2 -1
View File
@@ -5,12 +5,13 @@
"scripts": { "scripts": {
"build": "vite build", "build": "vite build",
"dev": "vite", "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": { "devDependencies": {
"@tailwindcss/vite": "^4.0.0", "@tailwindcss/vite": "^4.0.0",
"axios": "^1.11.0", "axios": "^1.11.0",
"concurrently": "^9.0.1", "concurrently": "^9.0.1",
"cross-var": "^1.1.0",
"laravel-vite-plugin": "^3.0.0", "laravel-vite-plugin": "^3.0.0",
"tailwindcss": "^4.0.0", "tailwindcss": "^4.0.0",
"vite": "^8.0.0" "vite": "^8.0.0"