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 public schema versions 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
|
Re-import data: make schemas/rotate; . bin/import_all
|
15
|
Note: This will archive the last import.
|
16
|
Back up an archived import: make schemas/public.<date>.backup &
|
17
|
Note: To back up the last import, you must archive it first (see above)
|
18
|
Empty the DB: make schemas/reinstall
|
19
|
WARNING: This will delete the current public schema of your VegBIEN DB!
|
20
|
|
21
|
Datasource setup:
|
22
|
Add a new datasource: make inputs/<short_name>/add
|
23
|
If the datasource is a herbarium, <short_name> should be the herbarium
|
24
|
code as defined by the Index Herbariorum <http://sweetgum.nybg.org/ih/>
|
25
|
|
26
|
Schema changes:
|
27
|
Regenerate schema from installed DB: make schemas/remake
|
28
|
Reinstall DB from schema: make schemas/reinstall
|
29
|
WARNING: This will delete the current public schema of your VegBIEN DB!
|
30
|
Sync ERD with vegbien.sql schema:
|
31
|
Run make schemas/vegbien.my.sql
|
32
|
Open schemas/vegbien.ERD.mwb in MySQLWorkbench
|
33
|
Go to File > Export > Synchronize With SQL CREATE Script...
|
34
|
For Input File, select schemas/vegbien.my.sql
|
35
|
Click Continue
|
36
|
Click in the changes list and press Ctrl+A or Apple+A to select all
|
37
|
Click Update Model
|
38
|
Click Continue
|
39
|
Note: The generated SQL script will be empty because we are syncing in
|
40
|
the opposite direction
|
41
|
Click Execute
|
42
|
Reposition any lines that have been reset
|
43
|
Add any new tables by dragging them from the Catalog in the left sidebar
|
44
|
to the diagram
|
45
|
Remove any deleted tables by right-clicking the table's diagram element,
|
46
|
selecting Delete '<table name>', and clicking Delete
|
47
|
Save
|
48
|
If desired, update the graphical ERD exports (see below)
|
49
|
Update graphical ERD exports:
|
50
|
Go to File > Export > Export as PNG...
|
51
|
Select schemas/vegbien.ERD.png and click Save
|
52
|
Go to File > Export > Export as SVG...
|
53
|
Select schemas/vegbien.ERD.svg and click Save
|
54
|
Go to File > Export > Export as Single Page PDF...
|
55
|
Select schemas/vegbien.ERD.pdf and click Save
|
56
|
Go to File > Print...
|
57
|
For Pages, choose From 1 To 1
|
58
|
In the lower left corner, click PDF > Save as PDF...
|
59
|
Set the Title and Author to ""
|
60
|
Select schemas/vegbien.ERD.core.pdf and click Save
|
61
|
|
62
|
Testing:
|
63
|
Mapping process: make test
|
64
|
Map spreadsheet generation: make remake
|
65
|
Missing mappings: make missing_mappings
|
66
|
Everything (for most complete coverage): make test-all
|
67
|
|
68
|
Documentation:
|
69
|
To generate a Redmine-formatted list of steps for column-based import:
|
70
|
make inputs/QMOR/import/steps.by_col.sql
|
71
|
|
72
|
General:
|
73
|
To see a program's description, read its top-of-file comment
|
74
|
To see a program's usage, run it without arguments
|