Commit af634fb
refactor(omdb)!: remove diff-and-converge schema-migration engine
Deletes the migration engine itself, atomically with the driver render() surface
it was coupled to (DatabaseDriver extends MigrationSqlRenderer; the drivers'
render(Change) overrides and their SqlType dialect mappers were mutually
dependent with migrate/, so they go together).
Deleted:
- omdb/.../manager/db/migrate/ (16 files: AllowOptions, BlockedChangesError,
Change, ChangeStatusRules, DiffResult, EmitResult, ExpectedSchemaBuilder,
JdbcSqlTypes, MigrationEmitter, RenameHints, SchemaDiffer, SchemaIntrospector,
SchemaMigrationEngine, SchemaSnapshot, SqlType, ViewBodyBuilder).
- omdb/.../manager/db/MigrationSqlRenderer.java (the interface drivers implemented).
- omdb migrate unit tests (10 classes under .../db/migrate/) +
DriverFloatTypeTest (asserted only on the deleted pgType/derbyType mappers;
R6 float wire-fidelity stays covered by integration-tests NormalizationFloatTest).
Edited (kept all CRUD/query/codec/paging + the legacy createTable/createIndex/
createForeignKey/createSequence DDL used by MetaClassDBValidatorService):
- DatabaseDriver: drop `extends MigrationSqlRenderer`.
- GenericSQLDriver: drop the throwing render(Change) default.
- PostgresDriver / DerbyDriver: drop render(Change), renderCreateTable, the
SqlType type mappers (pgType/derbyType), Postgres' render-only q()/joinQ()
helpers, and the migrate-package imports. PostgresDriver keeps quoteIdent
(used by the runtime CRUD path + the legacy createTable quoting from the prior
commit).
The shared manager/db/defs/* model is untouched (runtime mapping model).
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). No code
references the removed engine symbols remain.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 77a5c46 commit af634fb
32 files changed
Lines changed: 1 addition & 2205 deletions
File tree
- server/java/omdb/src
- main/java/com/metaobjects/manager/db
- driver
- migrate
- test/java/com/metaobjects/manager/db
- driver
- migrate
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 0 additions & 81 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | 27 | | |
32 | 28 | | |
33 | 29 | | |
| |||
344 | 340 | | |
345 | 341 | | |
346 | 342 | | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | 343 | | |
425 | 344 | | |
426 | 345 | | |
| |||
Lines changed: 0 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1774 | 1774 | | |
1775 | 1775 | | |
1776 | 1776 | | |
1777 | | - | |
1778 | | - | |
1779 | | - | |
1780 | | - | |
1781 | | - | |
1782 | | - | |
1783 | | - | |
1784 | 1777 | | |
Lines changed: 0 additions & 99 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 29 | | |
34 | 30 | | |
35 | 31 | | |
| |||
361 | 357 | | |
362 | 358 | | |
363 | 359 | | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | 360 | | |
460 | 361 | | |
461 | 362 | | |
| |||
Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 0 additions & 34 deletions
This file was deleted.
0 commit comments