#466: BibAuthorID: remove dynamic table creation
-------------------------+--------------------------------------------------
 Reporter:  simko        |       Owner:     
     Type:  enhancement  |      Status:  new
 Priority:  minor        |   Milestone:     
Component:  BibAuthorID  |     Version:     
 Keywords:               |  
-------------------------+--------------------------------------------------
 The local table creation statements in BibAuthorID should not be
 necessary and should be removed.

 `bibauthorid_personid_tables_utils.py` and
 `bibauthorid_tables_utils.py` contain table creation statements that
 should not be necessary.  The table are typically created elsewhere
 (tabcreate.sql) and keeping table definitions in two different places
 can be error-prone and can lead to differences in future table
 structure updates (e.g. one updates one but not the other).

 If the purpose of having table creation statements is mostly to ease
 the development, as the docstring of `create_database_tables()` seems
 to suggest, then note that table re-creation during development can be
 easily achieved by doing things like:

 {{{
 $ grep ' aid' /some/path/tabdrop.sql | dbexec
 $ cat /some/path/tabcreate.sql | dbexec
 }}}

-- 
Ticket URL: <http://invenio-software.org/ticket/466>
Invenio <http://invenio-software.org>

Reply via email to