Project

General

Profile

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