1 |
702
|
aaronmk
|
Installation:
|
2 |
|
|
Install: make install
|
3 |
3370
|
aaronmk
|
WARNING: This will delete the current public schema of your VegBIEN DB!
|
4 |
702
|
aaronmk
|
Uninstall: make uninstall
|
5 |
3370
|
aaronmk
|
WARNING: This will delete your entire VegBIEN DB!
|
6 |
3374
|
aaronmk
|
This includes all archived imports and staging tables.
|
7 |
1957
|
aaronmk
|
Reinstall all datasources at once: . bin/reinstall_all
|
8 |
554
|
aaronmk
|
|
9 |
702
|
aaronmk
|
Data import:
|
10 |
1550
|
aaronmk
|
Import data into VegBIEN: . bin/import_all
|
11 |
3205
|
aaronmk
|
Using column-based import: . bin/with_all 'import by_col=1'
|
12 |
1556
|
aaronmk
|
Stop all running imports: . bin/stop_imports
|
13 |
2976
|
aaronmk
|
Archive the last import: make schemas/rotate
|
14 |
3381
|
aaronmk
|
Remove the last import: make schemas/public/reinstall
|
15 |
|
|
WARNING: This will delete the current public schema of your VegBIEN DB!
|
16 |
2976
|
aaronmk
|
Re-import data: make schemas/rotate; . bin/import_all
|
17 |
|
|
Note: This will archive the last import.
|
18 |
3381
|
aaronmk
|
|
19 |
|
|
Maintenance of archived imports:
|
20 |
|
|
Back up: make schemas/public.<date>.backup &
|
21 |
3369
|
aaronmk
|
Note: To back up the last import, you must archive it first (see above)
|
22 |
3381
|
aaronmk
|
Restore: make schemas/public.<date>.backup/restore &
|
23 |
|
|
Remove: make schemas/public.<date>/uninstall
|
24 |
554
|
aaronmk
|
|
25 |
1773
|
aaronmk
|
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 |
702
|
aaronmk
|
Schema changes:
|
31 |
|
|
Regenerate schema from installed DB: make schemas/remake
|
32 |
1967
|
aaronmk
|
Reinstall DB from schema: make schemas/reinstall
|
33 |
3370
|
aaronmk
|
WARNING: This will delete the current public schema of your VegBIEN DB!
|
34 |
702
|
aaronmk
|
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 |
1774
|
aaronmk
|
If desired, update the graphical ERD exports (see below)
|
53 |
|
|
Update graphical ERD exports:
|
54 |
702
|
aaronmk
|
Go to File > Export > Export as PNG...
|
55 |
1774
|
aaronmk
|
Select schemas/vegbien.ERD.png and click Save
|
56 |
702
|
aaronmk
|
Go to File > Export > Export as SVG...
|
57 |
1774
|
aaronmk
|
Select schemas/vegbien.ERD.svg and click Save
|
58 |
702
|
aaronmk
|
Go to File > Export > Export as Single Page PDF...
|
59 |
1774
|
aaronmk
|
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 |
203
|
aaronmk
|
|
66 |
1459
|
aaronmk
|
Testing:
|
67 |
|
|
Mapping process: make test
|
68 |
|
|
Map spreadsheet generation: make remake
|
69 |
1744
|
aaronmk
|
Missing mappings: make missing_mappings
|
70 |
1459
|
aaronmk
|
Everything (for most complete coverage): make test-all
|
71 |
702
|
aaronmk
|
|
72 |
3133
|
aaronmk
|
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 |
702
|
aaronmk
|
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
|