restore composer.json, add mysqli extension

This commit is contained in:
2026-04-15 17:02:52 +05:00
commit 77cf56a348
4317 changed files with 1397107 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateSettingsTable extends Migration
{
public function up()
{
Schema::create('settings', function (Blueprint $table) {
$table->bigIncrements('id');
$table->jsonb('title');
$table->jsonb('keywords');
$table->jsonb('description');
$table->jsonb('phone');
$table->string('email');
$table->boolean('buy_one')->default(true);
$table->jsonb('address');
$table->jsonb('socials');
$table->jsonb('other')->default('{"delivery":{"ru":"","uz":""},"pickup":{"ru":"","uz":""}}');
$table->boolean('pickup')->default(true);
$table->jsonb('permissions')->default('{"news": true, "middle_banner": true, "special_block":true,"lider_products":true,"popular_products":true,"new_products":true,"popular_categories":true,"brands":true}');
$table->boolean('on_credit')->default(false);
$table->boolean('delivery')->default(true);
$table->jsonb('pickup_text')->default('{"ru":"","uz":""}');
$table->integer('price_delivery')->default(10000);
$table->integer('day_delivery')->default(1);
$table->jsonb('landmark');
$table->jsonb('links')->nullable();
$table->timestamps();
});
}
public function down()
{
Schema::dropIfExists('settings');
}
}