Commit 77a5c46
refactor(omdb)!: remove meta:migrate goal + Java migration-conformance scenarios
Removes the consumers of the diff-and-converge schema-migration engine so the
engine itself can be deleted atomically in a follow-up commit. Schema migrations
(and live-DB schema-drift verification) move to the TypeScript toolchain
(@metaobjectsdev/cli migrate); the Java port retains runtime persistence only.
Maven plugin:
- Delete MetaDataMigrateMojo (the meta:migrate goal) and its two tests.
- Delete MetaDataVerifyMojo. The meta:verify goal was a thin subclass of the
migrate mojo providing a live-DB schema-drift gate (SchemaMigrationEngine.verify),
so it is part of the migration subsystem, not an independent codegen/metadata
check. Prompt/template drift is still checked via the metaobjects-render Verify
API; meta:gen and meta:editor are unaffected.
- Update server/java/README to list meta:gen / meta:editor only.
integration-tests:
- Delete MigrationScenarioRunner + MigrationScenarioTests; drop the migration
record types from Scenarios and the migration parsing from ScenarioLoader.
Java permanently stops running migration-conformance scenarios.
- Re-point QueryScenarioRunner's schema bootstrap off SchemaMigrationEngine onto
the retained runtime auto-create path (MetaClassDBValidatorService + the
drivers' legacy createTable/createIndex/createForeignKey/createSequence DDL).
- Defer the projection-aggregate query scenario: its aggregate-view body was
synthesized by the engine's ViewBodyBuilder (removed); runtime auto-create only
materializes views from an explicit dbViewSQL attr.
omdb:
- Quote column/PK/index/FK identifiers in PostgresDriver's legacy createTable/
createIndex/createForeignKey so the runtime auto-create path produces a
mixed-case-correct Postgres schema, matching the already-quoted CRUD/SELECT
path. Previously masked because only the engine built the Postgres conformance
schema; the legacy DDL was only exercised against lowercase Derby fixtures.
The migrate/ package still compiles (now unused) and is deleted in the next commit.
Verified: om/omdb/maven-plugin/core-spring/omdb-ktx green; integration-tests green
under Docker (query 9 pass + 1 deferred, api-contract 20, float 4).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 95c26e6 commit 77a5c46
12 files changed
Lines changed: 39 additions & 1139 deletions
File tree
- server/java
- integration-tests/src/test/java/com/metaobjects/integration
- maven-plugin/src
- main/java/com/metaobjects/mojo
- test/java/com/metaobjects/mojo
- omdb/src/main/java/com/metaobjects/manager/db/driver
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
Lines changed: 0 additions & 246 deletions
This file was deleted.
Lines changed: 0 additions & 60 deletions
This file was deleted.
Lines changed: 14 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
| 9 | + | |
12 | 10 | | |
13 | 11 | | |
14 | 12 | | |
| |||
28 | 26 | | |
29 | 27 | | |
30 | 28 | | |
31 | | - | |
32 | | - | |
33 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | | - | |
52 | 52 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
| |||
0 commit comments