This commit is contained in:
2024-10-15 17:32:33 +03:00
parent c3c377a4e2
commit b7ac923261
7 changed files with 192 additions and 0 deletions

View File

@ -0,0 +1,34 @@
<?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
{
\kernel\App::$db->schema->create('module_shop', function (Blueprint $table) {
$table->increments('id');
$table->string("name", 255)->nullable(false);
$table->string("slug", 255)->nullable(false);
$table->text("description")->nullable(false);
$table->string("version", 255)->nullable(false);
$table->string("author", 255)->nullable(false);
$table->string("dependence", 255)->nullable(true);
$table->text("path_to_archive")->nullable(false);
$table->integer("status")->default(1);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
\kernel\App::$db->schema->dropIfExists('module_shop');
}
};