Project

General

Profile

« Previous | Next » 

Revision 2978

Removed no longer used schemas/vegbien_empty.sql

View differences:

schemas/vegbien_empty.sql
1
TRUNCATE address CASCADE;
2
TRUNCATE aggregateoccurrence CASCADE;
3
TRUNCATE classcontributor CASCADE;
4
TRUNCATE commclass CASCADE;
5
TRUNCATE commconcept CASCADE;
6
TRUNCATE commcorrelation CASCADE;
7
TRUNCATE commdetermination CASCADE;
8
TRUNCATE commlineage CASCADE;
9
TRUNCATE commname CASCADE;
10
TRUNCATE commstatus CASCADE;
11
TRUNCATE commusage CASCADE;
12
TRUNCATE coverindex CASCADE;
13
TRUNCATE covermethod CASCADE;
14
TRUNCATE definedvalue CASCADE;
15
TRUNCATE disturbanceobs CASCADE;
16
TRUNCATE graphic CASCADE;
17
TRUNCATE location CASCADE;
18
TRUNCATE locationdetermination CASCADE;
19
TRUNCATE locationevent CASCADE;
20
TRUNCATE locationeventcontributor CASCADE;
21
TRUNCATE locationeventsynonym CASCADE;
22
TRUNCATE method CASCADE;
23
TRUNCATE methodtaxonclass CASCADE;
24
TRUNCATE namedplace CASCADE;
25
TRUNCATE namedplace_ancestor CASCADE;
26
TRUNCATE namedplacecorrelation CASCADE;
27
TRUNCATE note CASCADE;
28
TRUNCATE notelink CASCADE;
29
TRUNCATE party CASCADE;
30
TRUNCATE partymember CASCADE;
31
TRUNCATE plant CASCADE;
32
TRUNCATE plantconcept CASCADE;
33
TRUNCATE plantcorrelation CASCADE;
34
TRUNCATE plantlineage CASCADE;
35
TRUNCATE plantname CASCADE;
36
TRUNCATE plantname_ancestor CASCADE;
37
TRUNCATE plantnamescope CASCADE;
38
TRUNCATE plantobservation CASCADE;
39
TRUNCATE plantstatus CASCADE;
40
TRUNCATE plantusage CASCADE;
41
TRUNCATE project CASCADE;
42
TRUNCATE projectcontributor CASCADE;
43
TRUNCATE reference CASCADE;
44
TRUNCATE referencealtident CASCADE;
45
TRUNCATE referencecontributor CASCADE;
46
TRUNCATE referencejournal CASCADE;
47
TRUNCATE referenceparty CASCADE;
48
TRUNCATE revision CASCADE;
49
TRUNCATE soilobs CASCADE;
50
TRUNCATE soiltaxon CASCADE;
51
TRUNCATE specimen CASCADE;
52
TRUNCATE specimenreplicate CASCADE;
53
TRUNCATE stemobservation CASCADE;
54
TRUNCATE stemtag CASCADE;
55
TRUNCATE stratum CASCADE;
56
TRUNCATE taxonalt CASCADE;
57
TRUNCATE taxondetermination CASCADE;
58
TRUNCATE taxonoccurrence CASCADE;
59
TRUNCATE telephone CASCADE;
60
TRUNCATE trait CASCADE;
61
TRUNCATE userdefined CASCADE;
62
TRUNCATE voucher CASCADE;
schemas/Makefile
7 7

  
8 8
##### General targets
9 9

  
10
all = vegbien.sql vegbien_empty.sql vegbien.my.sql functions.sql\
11
py_functions.sql
10
all = vegbien.sql vegbien.my.sql functions.sql py_functions.sql
12 11

  
13 12
all: _always $(all) ;
14 13

  
......
25 24
%:: %.make
26 25
	./$< >$@
27 26

  
28
##### VegBIEN DB
29

  
30
empty = $(SED) -n \
31
's/^CREATE TABLE ([0-9A-Za-z_]+) \($$/TRUNCATE \1 CASCADE;/p' <$< >$@
32

  
33
%_empty.sql: %.sql
34
	$(empty)
35

  
36 27
##### MySQL schema for ERD
37 28

  
38 29
repl = ../bin/repl

Also available in: Unified diff