view · edit · sidebar · attach · print · history


<< Masa.20120119-delete-old-narcotic-code-fix-errors-oddb_org-make-export_oddbdat_by_company_name | Index | Masa.20120117-update-sbsm-update-narcotics-data-importer-fix-small-bugs-oddb_org >>

  1. Update narcotic data structure and process
  2. Check error log online

  1. Added App#bm_package_count variable to save the total number of narcotics (
  2. Updated narcotic data structure, view, and state (
  3. Deleted App#bm_package_count variable (
  4. Added white space in the tob narcotics view, and deleted atc subheader in alphabetical view (
  5. Deleted atc subheader in narcotics alphabetical view when logged-in as admin (

Update narcotic data structure and process


Delete old narcotics data

ch.oddb> delete_all_narcotics

Import new narcotics data from a xls file


Only once for the first time

ch.oddb> rebuild_indices 'narcotics_de'
ch.oddb> rebuild_indices 'narcotics_fr'


  • rebuild_indices method updates the index table format depending on etc/index_definitions.yaml file
  • The contents of the index tables above is automatically updated when update_btm runs

Check error log online

view · edit · sidebar · attach · print · history
Page last modified on January 18, 2012, at 05:05 PM