Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ethar's avatar
Level 5

all relations and indexing removed after upload database

after uploading the database to the server, all relations have been removed,

in localhost its exist, how to solve this problem, I cant run migrate:fresh because the site owner already has insert data to the database to I cant rerun migration.

any idea to solve this problem

0 likes
1 reply
jlrdw's avatar

Well let's say I have several hundred records in a database.

Now let's say I add 20 more records.

You can actually back up those 20 records.

Now I restore the whole thing, then restore the latest changes, those 20 records.

Database should probably be offline for a while or site in maintenance mode while you achieve this.

Please or to participate in this conversation.