voyager-redirects icon indicating copy to clipboard operation
voyager-redirects copied to clipboard

Error on adding new redirect

Open donatiss opened this issue 8 years ago • 4 comments

I have an error when saving a new redirect uri

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'qwer' for key 'voyager_redirects_from_unique' (SQL: insert into voyager_redirects (from, to, type, updated_at, created_at) values (qwer, qwerty, 301, 2017-10-05 21:11:40, 2017-10-05 21:11:40))

it's 'cause from is UNIQUE but if i remove UNIQUE, then i have saved a few records.

donatiss avatar Oct 05 '17 21:10 donatiss

any ideas?

donatiss avatar Oct 26 '17 22:10 donatiss

@tsulavi 'from' column should be a unique key. so you can't add duplicate entries.

chadidi avatar Nov 01 '17 19:11 chadidi

yeah, I understand that. but when i put inputs from and to, select redirect type and press save, i have this error. i think its a bug.

donatiss avatar Nov 02 '17 15:11 donatiss

@tsulavi I have never used this package I search for this package migrations but I didn't find them so I think you have added migration manually so check that your migrations are ok.

chadidi avatar Nov 02 '17 21:11 chadidi