sheadawson / silverstripe-linkable

Easily add external or internal links to a dataobject with a dialog form
BSD 3-Clause "New" or "Revised" License
40 stars 69 forks source link

SSv4: DB table name changed from `EmbeddedObject` to `LinkableEmbed` #123

Open micschk opened 3 years ago

micschk commented 3 years ago

Not sure if there's a reason for changing the db table name for EmbeddedObject(?) But currently when updating from Silverstripe 3 to 4, all EmbeddedObjects disappear due to the database table having changed between 3 & 4.

Quick fix is to revert the table name back to the previous value from config.yml:

Sheadawson\Linkable\Models\EmbeddedObject:
  table_name: 'EmbeddedObject'