Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

exp:expmigrationcheck

Prüft Migrationsdateien, ohne sie auszuführen: Namen, Kopfzeilen, Reihenfolge, PHP-Syntax und Klassen (die Prüfung für CI).

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/commands/expmigrationcheck.md

On this page

This page is a translation. Read the English original

exp:expmigrationcheck

Prüft Migrationsdateien, ohne sie auszuführen: Namen, Kopfzeilen, Reihenfolge, PHP-Syntax und Klassen (die Prüfung für CI).

Skript bin/php/expmigrationcheck.php, Code in kernel/private/classes/commands/expmigrationcheck.php. Führen Sie es im Wurzelverzeichnis der Installation aus, als der Benutzer, unter dem der Webserver läuft:

./console exp:expmigrationcheck --help
./console exp:migration:check --help
php bin/php/expmigrationcheck.php --help

Hilfetext

Was --help ausgibt, so wie der Befehl es schreibt:

Check migration files
The lint for CI, without a database: every migration of the migration directories (or of --path)
is checked for a valid file name, a header of known keys, requirements that exist and no cycle,
active extensions it requires, and, for a PHP migration, its syntax and exactly one class that
extends expMigrationPhp and loads; for a YAML migration, its YAML and every step against the
schema of its step type, with its conditions, loops and references. Nothing of a migration is run.
Exit 1 when something is wrong.

./console exp:migration:check
./console exp:migration:check --path=extension/expnews/migrations --format=json
./console exp:migration:check --environment=production

Optionen

OptionWertHilfe
--patherforderlichMigrationsdateien oder -ordner, relativ zur Wurzel oder absolut (als Komma-Liste oder wiederholt): migrate und dry-run nehmen nur die Migrationen darin, check prüft sie statt der Migrationsverzeichnisse
--environmenterforderlichDie Umgebung (Standard die der Installation: [AdminEnvironment] Level, oder EXP_ENV bei Level=auto; check: jede Umgebung); nur die Migrationen für sie zählen
--formaterforderlichtext (Standard) oder json (die Maschinenausgabe exp-migration/1)

Aus den Optionsdefinitionen im Code gelesen (startup(), getOptions(), options() oder ezcConsoleOption). Jedes Skript nimmt außerdem die Standardoptionen des Skript-Frameworks (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).

Siehe auch


Erzeugt von ./console exp:help:examples --language=ger-de aus bin/php/expmigrationcheck.php, kernel/private/classes/commands/expmigrationcheck.php. Bearbeiten Sie diese Seite nicht: Ändern Sie die Quelle oder die deutsche Übersetzung und erzeugen Sie sie neu (wie). Freie Dokumentation: GFDL 1.3 oder später.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x