Project

General

Profile

1
Installation:
2
    Install: make install
3
    Uninstall: make uninstall
4
        WARNING: This will delete your VegBIEN DB!
5

    
6
Data import:
7
    Import data into VegBIEN: . bin/import_all
8
    Stop all running imports: . bin/stop_imports
9
    Empty the DB: make empty_db
10
        WARNING: This will delete your VegBIEN DB!
11
    Re-import data: make empty_db; . bin/import_all
12
        WARNING: This will delete your VegBIEN DB!
13

    
14
Schema changes:
15
    Regenerate schema from installed DB: make schemas/remake
16
    Reinstall DB from schema: make reinstall_db
17
        WARNING: This will delete your VegBIEN DB!
18
    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

    
43
Testing:
44
    Mapping process: make test
45
    Map spreadsheet generation: make remake
46
    Missing mappings: make missing_mappings
47
    Everything (for most complete coverage): make test-all
48

    
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
(2-2/3)