ClusterCockpit / cc-backend

Web frontend and API backend server for ClusterCockpit Monitoring Framework
https://www.clustercockpit.org
MIT License
16 stars 14 forks source link

Disable foreign key check while updating database #245

Closed oscarminus closed 8 months ago

oscarminus commented 8 months ago

While testing the new cc-backend version, mysql refused to apply the migration for version 7. The id column is used as a foreign key in an other table. So disabling the foreign key checks while applying the changes did the work.

moebiusband73 commented 8 months ago

Thanks for testing this! My mistake, my tags tables where empty when testing the migration. I use something more realistic next time.