- 134-tool registry with programmatic SEO (unique titles/H1/descriptions, JSON-LD graphs, sitemap index, canonical 301 enforcement via required filter) - DB-backed job queue (SKIP LOCKED) with drivers: Ffmpeg, Images (GD), Pdf (qpdf/gs/poppler), Youtube (thumbnails), Qr (server-side PNG) - Security: SSRF guard, MIME validation, rate limits, API-key auth, bcrypt admin login, security headers - Admin panel: dashboard, tools/categories/guides CRUD, SEO audit, analytics, job inspector with retry, system health, feature flags - Docker deployment (nginx + web/api FPM pools + scalable workers), PHPUnit suite (19 tests / 1139 assertions), PWA manifest + service worker
38 lines
1.1 KiB
PHP
38 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace Tests\Support\Database\Migrations;
|
|
|
|
use CodeIgniter\Database\Migration;
|
|
|
|
class ExampleMigration extends Migration
|
|
{
|
|
protected $DBGroup = 'tests';
|
|
|
|
public function up(): void
|
|
{
|
|
$this->forge->addField('id');
|
|
$this->forge->addField([
|
|
'name' => ['type' => 'varchar', 'constraint' => 31],
|
|
'uid' => ['type' => 'varchar', 'constraint' => 31],
|
|
'class' => ['type' => 'varchar', 'constraint' => 63],
|
|
'icon' => ['type' => 'varchar', 'constraint' => 31],
|
|
'summary' => ['type' => 'varchar', 'constraint' => 255],
|
|
'created_at' => ['type' => 'datetime', 'null' => true],
|
|
'updated_at' => ['type' => 'datetime', 'null' => true],
|
|
'deleted_at' => ['type' => 'datetime', 'null' => true],
|
|
]);
|
|
|
|
$this->forge->addKey('name');
|
|
$this->forge->addKey('uid');
|
|
$this->forge->addKey(['deleted_at', 'id']);
|
|
$this->forge->addKey('created_at');
|
|
|
|
$this->forge->createTable('factories');
|
|
}
|
|
|
|
public function down(): void
|
|
{
|
|
$this->forge->dropTable('factories');
|
|
}
|
|
}
|