playground icon indicating copy to clipboard operation
playground copied to clipboard

AutoMigrate to add primary key is not working

Open sgasho opened this issue 1 year ago • 0 comments

Explain your user case and expected results

DB

  • mysql

How To Reproduce

  1. AutoMigrate structA without primary key specification
  2. add primary key to some existing column in StructA then run AutoMigrate

Expected

  • after step 2, primary key added to the column

Result

  • primary key not added

sgasho avatar Mar 30 '24 07:03 sgasho