Skip to content

Association storage flips Table→Column when describe output is re-run; diff reports no change #704

Description

@ako

Plan item 0.4 in PROPOSAL_mdl_beta_syntax_freeze.md §8.1.

Symptom

  • On a Studio Pro-authored association with table storage, describe association omits the storage clause.
  • Running that output unchanged defaults the association to column storage. That changes the runtime database schema.
  • mxcli diff reports "(no changes)" for it.

Reproduction

PedApp, Administration.AccountPasswordData_Account: before the round trip describe shows no storage clause; after it, storage column.

Fix

  • describe always emits a storage value that round-trips.
  • create or modify on an existing association keeps the stored storage when the statement does not state it (mdl/executor/cmd_associations.go).
  • Find out why diff did not report the change.

Follow /mxcli-dev:fix-issue. Write the test first, prove the fix by reverting it, and record a finding.

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

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions