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 | |
| parent | 86b4026bcfaed73eda1a435f76c23e0c23e95307 (diff) | |
feat: check required form revision rangedatabase-migration
Diffstat (limited to 'src/main/resources')
| -rw-r--r-- | src/main/resources/dev/dnpm/oshelper/migration/README.md | 18 | ||||
| -rw-r--r-- | src/main/resources/dev/dnpm/oshelper/migration/updatednpm_001.sql | 4 |
2 files changed, 22 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 diff --git a/src/main/resources/dev/dnpm/oshelper/migration/updatednpm_001.sql b/src/main/resources/dev/dnpm/oshelper/migration/updatednpm_001.sql index 44c6edc..6c6d80b 100644 --- a/src/main/resources/dev/dnpm/oshelper/migration/updatednpm_001.sql +++ b/src/main/resources/dev/dnpm/oshelper/migration/updatednpm_001.sql @@ -1 +1,5 @@ +-- form: DNPM UF Einzelempfehlung +-- min-rev: 273 +-- max-rev: 273 + ALTER TABLE dk_dnpm_uf_einzelempfehlung MODIFY COLUMN studie VARCHAR(255);
\ No newline at end of file |
