Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Commit

Permalink
TASK: Remove definition for Font VO from migration
Browse files Browse the repository at this point in the history
The Font VO is never stored in the persistence, thus the table is not needed.
  • Loading branch information
kdambekalns authored Oct 18, 2017
1 parent ba924fd commit 3b7bae8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Migrations/Postgresql/Version20171015140356.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ public function up(Schema $schema)
{
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'postgresql', 'Migration can only be executed safely on "postgresql".');

$this->addSql('CREATE TABLE cm_neos_thememodule_domain_model_font (family VARCHAR(255) NOT NULL, category VARCHAR(255) DEFAULT \'\', fontsource VARCHAR(255) NOT NULL, variants TEXT NOT NULL, subsets TEXT NOT NULL, files TEXT NOT NULL, PRIMARY KEY(family))');
$this->addSql('COMMENT ON COLUMN cm_neos_thememodule_domain_model_font.variants IS \'(DC2Type:array)\'');
$this->addSql('COMMENT ON COLUMN cm_neos_thememodule_domain_model_font.subsets IS \'(DC2Type:array)\'');
$this->addSql('COMMENT ON COLUMN cm_neos_thememodule_domain_model_font.files IS \'(DC2Type:array)\'');
$this->addSql('CREATE TABLE cm_neos_thememodule_domain_model_settings (persistence_object_identifier VARCHAR(40) NOT NULL, customscss TEXT DEFAULT \'\', customcss TEXT DEFAULT \'\', customsettings TEXT DEFAULT \'\', PRIMARY KEY(persistence_object_identifier))');
}

Expand All @@ -40,7 +36,6 @@ public function down(Schema $schema)
{
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'postgresql', 'Migration can only be executed safely on "postgresql".');

$this->addSql('DROP TABLE cm_neos_thememodule_domain_model_font');
$this->addSql('DROP TABLE cm_neos_thememodule_domain_model_settings');
}
}

0 comments on commit 3b7bae8

Please sign in to comment.