Skip to content

migrator: addColumnOptionsSpec text-default DEFAULT clause still fails on MySQL (follow-up to #2661) #2742

Description

@bpamiri

Describe the bug

#2661 patched the addColumnOptionsSpec DEFAULT-clause substring assertions for CockroachDB and Postgres, but the same spec still fails on MySQL across all three actively-tested engines (Lucee 6, Lucee 7, BoxLang).

Failing spec

wheels.migrator.addColumnOptionsSpec :: text with a real default (non-empty) still emits DEFAULT

Assertion message:

The needle [DEFAULT] was not found in [ NULL]

The emitted SQL contains NULL instead of DEFAULT '<value>' on MySQL. Either the migrator emits a different DEFAULT clause for MySQL text columns, or the assertion's substring check needs the same MySQL-aware branch that #2661 added for CockroachDB / Postgres.

Reproduction

tools/test-matrix.sh lucee7 mysql
# or
curl 'http://localhost:60007/wheels/core/tests?db=mysql&format=json&directory=tests.specs.migrator'

Evidence

Compat-matrix run 25978222394 (develop, 2026-05-17):

  • lucee6/mysql: 1 fail (this spec)
  • lucee7/mysql: 1 fail (this spec)
  • boxlang/mysql: 2 fail (this spec + a separate boxlang-only locking issue)

Expected behavior

Spec passes on MySQL with the same fix shape used in #2661 for CockroachDB and Postgres.

Related

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions