Migrate backend stack to PostgreSQL
فشلت بعض الفحوصات
Deploy Backend / deploy (push) Has been cancelled

هذا الالتزام موجود في:
Abdul Kareem
2026-02-16 21:03:30 +03:00
الأصل 2d1886462a
التزام 749b083a1f
11 ملفات معدلة مع 34 إضافات و32 حذوفات

عرض الملف

@@ -13,9 +13,9 @@ return new class extends Migration
$table->dropColumn('name');
// نضيف الحقول تبع مشروعنا
$table->string('first_name')->after('id');
$table->string('last_name')->after('first_name');
$table->string('phone')->unique()->after('email');
$table->string('first_name');
$table->string('last_name');
$table->string('phone')->unique();
});
}

عرض الملف

@@ -9,7 +9,7 @@ return new class extends Migration
public function up(): void
{
Schema::table('venues', function (Blueprint $table) {
$table->string('type')->default('restaurant')->after('name');
$table->string('type')->default('restaurant');
});
}

عرض الملف

@@ -9,9 +9,9 @@ return new class extends Migration
public function up(): void
{
Schema::table('venues', function (Blueprint $table) {
$table->string('address_text')->nullable()->after('description');
$table->decimal('lat', 10, 7)->nullable()->after('address_text');
$table->decimal('lng', 10, 7)->nullable()->after('lat');
$table->string('address_text')->nullable();
$table->decimal('lat', 10, 7)->nullable();
$table->decimal('lng', 10, 7)->nullable();
});
}

عرض الملف

@@ -9,7 +9,7 @@ return new class extends Migration
public function up(): void
{
Schema::table('venues', function (Blueprint $table) {
$table->boolean('is_active')->default(true)->after('lng');
$table->boolean('is_active')->default(true);
});
}

عرض الملف

@@ -9,7 +9,7 @@ return new class extends Migration
public function up(): void
{
Schema::table('reservations', function (Blueprint $table) {
$table->string('code', 8)->unique()->after('id');
$table->string('code', 8)->unique();
});
}

عرض الملف

@@ -9,9 +9,9 @@ return new class extends Migration
public function up(): void
{
Schema::table('users', function (Blueprint $table) {
$table->unsignedSmallInteger('strike_count')->default(0)->after('password');
$table->timestamp('blocked_until')->nullable()->after('strike_count');
$table->boolean('blocked_permanent')->default(false)->after('blocked_until');
$table->unsignedSmallInteger('strike_count')->default(0);
$table->timestamp('blocked_until')->nullable();
$table->boolean('blocked_permanent')->default(false);
});
}

عرض الملف

@@ -9,7 +9,7 @@ return new class extends Migration
public function up(): void
{
Schema::table('venues', function (Blueprint $table) {
$table->json('amenities')->nullable()->after('phone');
$table->json('amenities')->nullable();
});
}

عرض الملف

@@ -9,8 +9,8 @@ return new class extends Migration
public function up(): void
{
Schema::table('venues', function (Blueprint $table) {
$table->json('image_urls')->nullable()->after('amenities');
$table->json('offers')->nullable()->after('image_urls');
$table->json('image_urls')->nullable();
$table->json('offers')->nullable();
});
}