mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2026-05-03 16:24:55 +00:00
🔥 **Cleanup:** Removed BookCase and OrangePill models, factories, migrations, and related references. Added tests for new service and meetup creation flows. Updated PHPUnit settings and browser-specific configurations.
This commit is contained in:
@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration {
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
@@ -12,8 +13,9 @@ return new class extends Migration {
|
||||
{
|
||||
Schema::table('users', function (Blueprint $table) {
|
||||
$table->json('lnbits')
|
||||
->default('{"read_key":null,"url":null,"wallet_id":null}')
|
||||
->change();
|
||||
->nullable()
|
||||
->default('{"read_key":null,"url":null,"wallet_id":null}')
|
||||
->change();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
DB::table('media')
|
||||
->whereIn('model_type', [
|
||||
'App\\Models\\OrangePill',
|
||||
'App\\Models\\BookCase',
|
||||
])
|
||||
->delete();
|
||||
|
||||
Schema::dropIfExists('orange_pills');
|
||||
Schema::dropIfExists('book_cases');
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
throw new RuntimeException(
|
||||
'OrangePill and BookCase features were removed permanently; this migration is not reversible.'
|
||||
);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user