GHowlett / Markus-Contract

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Markus-Contract

A. Make a copy of the mysql DB

B. Clean up the data

  1. subtopics table - remove all rows with stage!=1
  2. cells table - remove all rows with subtopic_id that doesn't exist in subtopics table
  3. cells_to_phrases table - remove all rows with cell_id that doesn't exist in cells table
  4. phrases table - remove all rows with phrase_id that doesn't exist in cells_to_phrases table
  5. phrase_distractors table- remove all rows with phrase_id that doesn't exist in phrases table
  6. blank_answers table - remove all rows with phrase_id that doesn't exist in phrases table
  7. blank_distractors table - remove all rows with blank_id that doesn't exist in blank_answers table
  8. cells_comprehension table - remove all rows with cell_id that doesn't exist in cells table
  9. comprehension table - remove all rows with comprehension_id that doesn't exist in cells_comprehension table
  10. comprehension_distractors table - remove all rows with comprehension_id that doesn't exist in comprehension table.

C. Dump the result into an sqlite file on the server

D. Refresh cloud front server via their api.

About


Languages

Language:PHP 51.2%Language:Shell 48.8%