Added the ability to automatically translate documentation content.

This commit is contained in:
2025-02-09 18:58:51 +05:00
parent 25faa3d62b
commit 58a256e1e4
24 changed files with 768 additions and 3 deletions

View File

@@ -0,0 +1,36 @@
<?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::create('project_translation_service_hashes', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('language_id')->index();
$table->foreign('language_id')->references('id')->on('project_languages');
$table->unsignedInteger('morph_type');
$table->unsignedBigInteger('morph_id');
$table->string('field', 255);
$table->unsignedInteger('status')->index()->default(0);
$table->char('hash', 64);
$table->timestamps();
$table->index(['morph_type', 'morph_id']);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('project_translation_service_hashes');
}
};