Skip to content

Commit

Permalink
FEATURE: Run Flow core migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
www-data authored and paxuclus committed May 23, 2022
1 parent d24339e commit 8d66aee
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Migrations/Mysql/Version20190930132259.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
*/
class Version20190930132259 extends AbstractMigration
{
public function up(Schema $schema)
public function up(Schema $schema): void
{
// this up() migration is autogenerated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on "mysql".');

$this->addSql('CREATE TABLE netlogix_migrationstatus (version VARCHAR(255) NOT NULL, PRIMARY KEY(version)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');
}

public function down(Schema $schema)
public function down(Schema $schema): void
{
// this down() migration is autogenerated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on "mysql".');
Expand Down
30 changes: 27 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"description": "Custom migrations",
"homepage": "http://websolutions.netlogix.de/",
"license": ["MIT"],
"license": [
"MIT"
],
"name": "netlogix/migrations",
"type": "neos-package",
"require": {
Expand All @@ -22,11 +24,33 @@
"extra": {
"neos": {
"package-key": "Netlogix.Migrations"
}
},
"applied-flow-migrations": [
"TYPO3.Form-20160601101500",
"Neos.Twitter.Bootstrap-20161124204912",
"Neos.Form-20161124205254",
"Neos.Party-20161124225257",
"Neos.Kickstart-20161124230102",
"Neos.Imagine-20161124231742",
"Neos.Kickstarter-20161125110814",
"Neos.SwiftMailer-20161130105617",
"Neos.ContentRepository.Search-20161210231100",
"Neos.Seo-20170127154600",
"Neos.Flow-20180415105700",
"Neos.Neos-20180907103800",
"Neos.Neos.Ui-20190319094900",
"Neos.Flow-20190425144900",
"Neos.Flow-20190515215000",
"Neos.Flow-20200813181400",
"Neos.Flow-20201003165200",
"Neos.Flow-20201109224100",
"Neos.Flow-20201205172733",
"Neos.Flow-20201207104500"
]
},
"scripts": {
"unit-tests": [
"FLOW_CONTEXT=Testing/Unit bin/phpunit -c phpunit.xml.dist --bootstrap \"Build/BuildEssentials/PhpUnit/UnitTestBootstrap.php\""
]
}
}
}

0 comments on commit 8d66aee

Please sign in to comment.