diff options
| author | Paul-Christian Volkmer | 2026-11-13 10:44:18 +0100 |
|---|---|---|
| committer | Paul-Christian Volkmer | 2026-11-13 10:44:18 +0100 |
| commit | 6f5d91fbab966d627e28f8269dae97f1f88ccfbe (patch) | |
| tree | 33f870d60e3e962117dc3588e2a40a1626b8ea75 /src/main/resources/dev/dnpm/oshelper/migration/README.md | |
| parent | 86b4026bcfaed73eda1a435f76c23e0c23e95307 (diff) | |
feat: check required form revision rangedatabase-migration
Diffstat (limited to 'src/main/resources/dev/dnpm/oshelper/migration/README.md')
| -rw-r--r-- | src/main/resources/dev/dnpm/oshelper/migration/README.md | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main/resources/dev/dnpm/oshelper/migration/README.md b/src/main/resources/dev/dnpm/oshelper/migration/README.md new file mode 100644 index 0000000..14a530b --- /dev/null +++ b/src/main/resources/dev/dnpm/oshelper/migration/README.md @@ -0,0 +1,18 @@ +# Format der Migrationsdateien + +Die Migrationsdateien sollen fortlaufend aufsteigend nummeriert sein, mit `.sql` enden. + +Zudem sollen sie immer Angaben zum betreffenden Formular und Revision enthalten: + +```sql +-- form: DNPM Beispiel +-- min-rev: 1 +-- max-rev: 2 + +ALTER TABLE dk_dnpm_beispiel + MODIFY COLUMN langer_text text; +``` + +Ist keine Angabe zum Formularnamen angegeben, wird die Migration immer ausgeführt, +anderenfalls nur für eine entsprechende Revision des angegebenen Formulars. +Wenn nicht angegeben, ist die minimal erforderliche Revision ist standardmäßig 0, die maximale 99999999999999.
\ No newline at end of file |
