caleeli / traceper

Automatically exported from code.google.com/p/traceper
1 stars 1 forks source link

Same name and device id in register gps device #30

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
after registiraton of a gps device with name and device id, if same name and 
device id is entered again, it does nothing.

Original issue reported on code.google.com by ahmetmermerkaya@gmail.com on 18 Jan 2012 at 4:21

GoogleCodeExporter commented 9 years ago
Since the table 'Users' is used as common for both real users and devices we 
cannot add unique index for realname, so the same name existance check is done 
manually but not by the database internity check.

Original comment by adnanka...@gmail.com on 28 Mar 2012 at 11:06

GoogleCodeExporter commented 9 years ago
Same user name can be in database but same id cannot. It should check the 
database whether same id exists

Original comment by ahmetmermerkaya@gmail.com on 19 Apr 2012 at 6:14

GoogleCodeExporter commented 9 years ago
Since the device id is also assigned to "email" field of the Users table due to 
it's being a mandatory field, "the same id check" were being made by the 
database internity check since the "email" field has a unique index and a 
necessary warning were being shown to the user. 

Nevertheless, a unique index is also added to the "deviceId" field in case the 
"email" field may be assigned a different value for the GPS registration in the 
future.

Original comment by adnanka...@gmail.com on 3 May 2012 at 7:57