Project

General

Profile

1 702 aaronmk
Installation:
2
    Install: make install
3
    Uninstall: make uninstall
4 1749 aaronmk
        WARNING: This will delete your VegBIEN DB!
5 554 aaronmk
6 702 aaronmk
Data import:
7 1550 aaronmk
    Import data into VegBIEN: . bin/import_all
8 1556 aaronmk
    Stop all running imports: . bin/stop_imports
9 703 aaronmk
    Empty the DB: make empty_db
10 1749 aaronmk
        WARNING: This will delete your VegBIEN DB!
11 1550 aaronmk
    Re-import data: make empty_db; . bin/import_all
12 1749 aaronmk
        WARNING: This will delete your VegBIEN DB!
13 554 aaronmk
14 702 aaronmk
Schema changes:
15
    Regenerate schema from installed DB: make schemas/remake
16
    Reinstall DB from schema: make reinstall_db
17 1750 aaronmk
        WARNING: This will delete your VegBIEN DB!
18 702 aaronmk
    Sync ERD with vegbien.sql schema:
19
        Run make schemas/vegbien.my.sql
20
        Open schemas/vegbien.ERD.mwb in MySQLWorkbench
21
        Go to File > Export > Synchronize With SQL CREATE Script...
22
        For Input File, select schemas/vegbien.my.sql
23
        Click Continue
24
        Click in the changes list and press Ctrl+A or Apple+A to select all
25
        Click Update Model
26
        Click Continue
27
        Note: The generated SQL script will be empty because we are syncing in
28
            the opposite direction
29
        Click Execute
30
        Reposition any lines that have been reset
31
        Add any new tables by dragging them from the Catalog in the left sidebar
32
            to the diagram
33
        Remove any deleted tables by right-clicking the table's diagram element,
34
            selecting Delete '<table name>', and clicking Delete
35
        Save
36
        Go to File > Export > Export as PNG...
37
        Select schemas/vegbien.ERD.png
38
        Go to File > Export > Export as SVG...
39
        Select schemas/vegbien.ERD.svg
40
        Go to File > Export > Export as Single Page PDF...
41
        Select schemas/vegbien.ERD.pdf
42 203 aaronmk
43 1459 aaronmk
Testing:
44
    Mapping process: make test
45
    Map spreadsheet generation: make remake
46 1744 aaronmk
    Missing mappings: make missing_mappings
47 1459 aaronmk
    Everything (for most complete coverage): make test-all
48 702 aaronmk
49
General:
50
    To see a program's description, read its top-of-file comment
51
    To see a program's usage, run it without arguments