mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-18 16:19:34 +00:00
Build-Funktionalität bei Assemblies entfernen. Soll letztlich nur bei Projects den Einsatz finden.
This commit is contained in:
parent
f7875ba385
commit
8515887da1
39 changed files with 62 additions and 3819 deletions
54
migrations/Version20251016124311.php
Normal file
54
migrations/Version20251016124311.php
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace DoctrineMigrations;
|
||||
|
||||
use App\Migration\AbstractMultiPlatformMigration;
|
||||
use Doctrine\DBAL\Schema\Schema;
|
||||
|
||||
final class Version20251016124311 extends AbstractMultiPlatformMigration
|
||||
{
|
||||
public function getDescription(): string
|
||||
{
|
||||
return 'Remove built_assembly_id from parts table';
|
||||
}
|
||||
|
||||
public function mySQLUp(Schema $schema): void
|
||||
{
|
||||
$this->addSql(<<<'SQL'
|
||||
ALTER TABLE parts DROP FOREIGN KEY FK_6940A7FECC660B3C
|
||||
SQL);
|
||||
$this->addSql(<<<'SQL'
|
||||
DROP INDEX UNIQ_6940A7FECC660B3C ON parts
|
||||
SQL);
|
||||
$this->addSql(<<<'SQL'
|
||||
ALTER TABLE `parts` DROP built_assembly_id
|
||||
SQL);
|
||||
}
|
||||
|
||||
public function mySQLDown(Schema $schema): void
|
||||
{
|
||||
// nothing do to, built_assembly_id not required
|
||||
}
|
||||
|
||||
public function sqLiteUp(Schema $schema): void
|
||||
{
|
||||
// nothing do to, built_assembly_id not required, already removed from Version20250304154507
|
||||
}
|
||||
|
||||
public function sqLiteDown(Schema $schema): void
|
||||
{
|
||||
// nothing do to, built_assembly_id not required, already removed from Version20250304154507
|
||||
}
|
||||
|
||||
public function postgreSQLUp(Schema $schema): void
|
||||
{
|
||||
// nothing do to, built_assembly_id not required, already removed from Version20250304154507
|
||||
}
|
||||
|
||||
public function postgreSQLDown(Schema $schema): void
|
||||
{
|
||||
// nothing do to, built_assembly_id not required, already removed from Version20250304154507
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue