Commit 9f9c488
authored
fix(cli): pass column/table to correct params in generate property (wheels-dev#2357)
The legacy CommandBox `wheels generate property` delegated to
`wheels dbmigrate create column` with the wrong parameter names:
the plural model name was passed as `name` (treated as the column
name by the target) and `tableName` was never supplied, triggering
an interactive prompt the user couldn't see. The result was a
migration with `table='n'` (whatever the user typed at the silent
prompt) and `columnName='users'` (the table name).
Swap the call to match the target's signature so `name` carries the
column and `tableName` carries the table.
Closes wheels-dev#23551 parent a87f5db commit 9f9c488
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
| 87 | + | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
0 commit comments