statamic / eloquent-driver

Provides support for storing your Statamic data in a database, rather than flat files.
https://statamic.dev/tips/storing-content-in-a-database
MIT License
104 stars 74 forks source link

Replaced foreign keys with simple indexes #100

Closed FrittenKeeZ closed 1 year ago

FrittenKeeZ commented 1 year ago

Also added index to entries order, and re-aligned migrations with Laravel's stub.

Fixes #97

what-the-diff[bot] commented 1 year ago
jasonvarga commented 1 year ago

Sorry I deleted my comment because right after I realized how long this has been opened, I didn't want to bother you. I was going to just sort it out myself. 😊 But thanks for updating that.

ryanmitchell commented 1 year ago

@jasonvarga I know you've got a seperate fix for the FK errors at https://github.com/statamic/eloquent-driver/pull/160 but I still think this is worth merging as it solves Jack's original issue. Do you have any concerns?

ryanmitchell commented 1 year ago

@FrittenKeeZ I've added an update script to provide migrations for existing installs so that the table definitions match going forward.