Bug #490
closed
Preventing duplicate database tables creation and data insertion
Added by Eric Hou over 14 years ago.
Updated over 14 years ago.
Description
Wizard does not know the databases' tables had been created or initialized, so it will keep insert data in to the table if user run it again.
We need to stop this happening.
Thanks.
- Subject changed from Need a way to stop wizard run tables creatation and initialization more than once. to Preventing duplicate database tables creation and data insertion
myamiweb/setup/initDBTables.php
I put a version number in the 'project' database. The current version number is 2.0. Please update your own project database if you don't have this number.
Please test this page and all the functions as list below.
Thanks.
r13968, r13969, r13970
Test case 1:
Database Username or password is not correct should display error message.
Test case 2:
Leginon or Project database has not been created should display error message.
Test case 3:
When both databases’ tables have been created and initialized.
Display the current version number and both databases’ names. User doesn’t need to do anything.
Test case 4:
When user has both empty databases.
Display both databases name and user can start to do table creation and data initialization.
- Status changed from Assigned to In Code Review
- Assignee changed from Eric Hou to Amber Herold
- Status changed from In Code Review to In Test
- Status changed from In Test to Closed
- % Done changed from 0 to 100
Also available in: Atom
PDF