vapor / fluent

Vapor ORM (queries, models, and relations) for NoSQL and SQL databases
https://docs.vapor.codes/4.0/fluent/overview/
MIT License
1.32k stars 172 forks source link

Add unique index to SessionRecord key #680

Closed SusanDoggie closed 4 years ago

SusanDoggie commented 4 years ago

Adds a unique index to SessionRecord.key to improve data integrity and key lookup performance (#680).

⚠️ If you have already added the SessionRecord migration in production, you will need to add this unique index manually.

SusanDoggie commented 4 years ago

Ok, i had reversed the changes and add a unique key for it.

0xTim commented 4 years ago

@SusanDoggie looks like the ID property is still missing from the model

SusanDoggie commented 4 years ago

@SusanDoggie looks like the ID property is still missing from the model

Done.

tanner0101 commented 4 years ago

These changes are now available in 4.0.0-rc.2.2