optimize catalog semantic match sby tags
This commit is contained in:
32
migrations/Version20260228000100.php
Normal file
32
migrations/Version20260228000100.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace DoctrineMigrations;
|
||||
|
||||
use Doctrine\DBAL\Schema\Schema;
|
||||
use Doctrine\Migrations\AbstractMigration;
|
||||
|
||||
final class Version20260228000100 extends AbstractMigration
|
||||
{
|
||||
public function getDescription(): string
|
||||
{
|
||||
return 'Add type column to knowledge_tag table for catalog entity support';
|
||||
}
|
||||
|
||||
public function up(Schema $schema): void
|
||||
{
|
||||
$this->addSql("
|
||||
ALTER TABLE knowledge_tag
|
||||
ADD type VARCHAR(50) NOT NULL DEFAULT 'generic'
|
||||
");
|
||||
}
|
||||
|
||||
public function down(Schema $schema): void
|
||||
{
|
||||
$this->addSql("
|
||||
ALTER TABLE knowledge_tag
|
||||
DROP type
|
||||
");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user