webseite funktioniert, pay sdk, blog backend funktioniert

This commit is contained in:
Codex Agent
2025-09-29 22:16:12 +02:00
parent e52a4005aa
commit 21c9391e2c
51 changed files with 2093 additions and 1293 deletions

View File

@@ -1,30 +0,0 @@
<?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
{
Schema::table('package_purchases', function (Blueprint $table) {
$table->dropForeign(['tenant_id']);
$table->foreignId('tenant_id')->constrained()->change();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('package_purchases', function (Blueprint $table) {
$table->dropForeign(['tenant_id']);
$table->foreignId('tenant_id')->nullable()->constrained()->change();
});
}
};

View File

@@ -0,0 +1,23 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('blog_categories', function (Blueprint $table) {
$table->string('name')->nullable()->after('id');
$table->text('description')->nullable()->after('name');
});
}
public function down(): void
{
Schema::table('blog_categories', function (Blueprint $table) {
$table->dropColumn(['name', 'description']);
});
}
};

View File

@@ -11,8 +11,8 @@ return new class extends Migration
*/
public function up(): void
{
Schema::table('users', function (Blueprint $table) {
$table->unique('username');
Schema::table('blog_categories', function (Blueprint $table) {
$table->dropColumn(['name', 'description']);
});
}
@@ -21,8 +21,9 @@ return new class extends Migration
*/
public function down(): void
{
Schema::table('users', function (Blueprint $table) {
$table->dropUnique(['username']);
Schema::table('blog_categories', function (Blueprint $table) {
$table->string('name')->after('id');
$table->text('description')->nullable()->after('name');
});
}
};
};

View File

@@ -0,0 +1,27 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('blog_categories', function (Blueprint $table) {
if (!Schema::hasColumn('blog_categories', 'name')) {
$table->json('name')->nullable()->after('id');
}
if (!Schema::hasColumn('blog_categories', 'description')) {
$table->json('description')->nullable()->after('name');
}
});
}
public function down(): void
{
Schema::table('blog_categories', function (Blueprint $table) {
$table->dropColumn(['name', 'description']);
});
}
};

View File

@@ -0,0 +1,32 @@
<?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
{
Schema::table('blog_categories', function (Blueprint $table) {
$table->json('name')->nullable()->change();
$table->json('description')->nullable()->change();
$table->dropColumn('translations');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('blog_categories', function (Blueprint $table) {
$table->string('name')->nullable()->change();
$table->text('description')->nullable()->change();
$table->json('translations')->nullable();
});
}
};