Project

General

Profile

1
Installation:
2
    Install: make install
3
        WARNING: This will delete the current public schema of your VegBIEN DB!
4
    Uninstall: make uninstall
5
        WARNING: This will delete your entire VegBIEN DB!
6
        This includes all archived imports and staging tables.
7
    Reinstall all datasources at once: . bin/reinstall_all
8

    
9
Data import:
10
    Import data into VegBIEN: . bin/import_all
11
        Using column-based import: . bin/with_all 'import by_col=1'
12
    Stop all running imports: . bin/stop_imports
13
    Archive the last import: make schemas/rotate
14
    Remove the last import: make schemas/public/reinstall
15
        WARNING: This will delete the current public schema of your VegBIEN DB!
16
    Re-import data: make schemas/rotate; . bin/import_all
17
        Note: This will archive the last import.
18

    
19
Maintenance of archived imports:
20
    Back up: make backups/public.<date>.backup &
21
        Note: To back up the last import, you must archive it first (see above)
22
    Restore: make backups/public.<date>.backup/restore &
23
    Remove: make backups/public.<date>.backup/remove
24

    
25
Datasource setup:
26
    Add a new datasource: make inputs/<short_name>/add
27
        If the datasource is a herbarium, <short_name> should be the herbarium
28
        code as defined by the Index Herbariorum <http://sweetgum.nybg.org/ih/>
29

    
30
Schema changes:
31
    Regenerate schema from installed DB: make schemas/remake
32
    Reinstall DB from schema: make schemas/reinstall
33
        WARNING: This will delete the current public schema of your VegBIEN DB!
34
    Sync ERD with vegbien.sql schema:
35
        Run make schemas/vegbien.my.sql
36
        Open schemas/vegbien.ERD.mwb in MySQLWorkbench
37
        Go to File > Export > Synchronize With SQL CREATE Script...
38
        For Input File, select schemas/vegbien.my.sql
39
        Click Continue
40
        Click in the changes list and press Ctrl+A or Apple+A to select all
41
        Click Update Model
42
        Click Continue
43
        Note: The generated SQL script will be empty because we are syncing in
44
            the opposite direction
45
        Click Execute
46
        Reposition any lines that have been reset
47
        Add any new tables by dragging them from the Catalog in the left sidebar
48
            to the diagram
49
        Remove any deleted tables by right-clicking the table's diagram element,
50
            selecting Delete '<table name>', and clicking Delete
51
        Save
52
        If desired, update the graphical ERD exports (see below)
53
    Update graphical ERD exports:
54
        Go to File > Export > Export as PNG...
55
        Select schemas/vegbien.ERD.png and click Save
56
        Go to File > Export > Export as SVG...
57
        Select schemas/vegbien.ERD.svg and click Save
58
        Go to File > Export > Export as Single Page PDF...
59
        Select schemas/vegbien.ERD.pdf and click Save
60
        Go to File > Print...
61
        For Pages, choose From 1 To 1
62
        In the lower left corner, click PDF > Save as PDF...
63
        Set the Title and Author to ""
64
        Select schemas/vegbien.ERD.core.pdf and click Save
65

    
66
Testing:
67
    Mapping process: make test
68
    Map spreadsheet generation: make remake
69
    Missing mappings: make missing_mappings
70
    Everything (for most complete coverage): make test-all
71

    
72
Documentation:
73
    To generate a Redmine-formatted list of steps for column-based import:
74
        make inputs/QMOR/import/steps.by_col.sql
75

    
76
General:
77
    To see a program's description, read its top-of-file comment
78
    To see a program's usage, run it without arguments
79
    To remake a directory: make <dir>/remake
80
    To remake a file: make <file>-remake
(2-2/3)