# Migration error

[![question_mark_1.png](https://doc.eainfoport.cz/uploads/images/gallery/2022-03/scaled-1680-/question-mark-1.png)](https://doc.eainfoport.cz/uploads/images/gallery/2022-03/question-mark-1.png)

### Question

<span lang="EN-GB" xml:lang="EN-GB">What to do if the following error occurs during migration?  
(*Column 'AspNetUsers.Id' is not of same collation as referencing column 'VisitedDetails.UserId' in foreign key 'FK\_VisitedDetails\_AspNetUsers\_UserId'.*  
*Could not create constraint or index. See previous errors.*)</span>

- - - - - -

### Answer

<span lang="EN-GB" xml:lang="EN-GB">Make sure that the database table and the database itself have the same collation.</span>