webseite funktioniert, pay sdk, blog backend funktioniert
This commit is contained in:
@@ -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();
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -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']);
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -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');
|
||||
});
|
||||
}
|
||||
};
|
||||
};
|
||||
@@ -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']);
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -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();
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user