Closed cdepillabout closed 7 years ago
@cdepillabout I guess this PR does not contain any code to ensure no same email address already exists when admin users try to add new store. It enables admin user to accidentally disable existing store account by adding same email address as a new store user as following flow describes.
Is it in another PR? If so, please merge this PR.
@arowM You're right! I'll go ahead and merge this PR in. I'll fix the bug you mentioned in a future PR. Thanks for checking!
This PR changes the
store
table to have an integer ID instead of an email address.This ends up affecting many different areas of the code base, but it is basically a mechanical transformation.
With this change, the Admin user can delete a
Store
and recreate anotherStore
with the same email address. This fixes #141.In order to get this PR to run, you will probably have to run the following sql statements to drop the old
store
table.