Project

General

Profile

« Previous | Next » 

Revision 2095

main Makefile: VegBIEN DB: functions schema: Renamed schemas/functions/clear to .../reset to reflect that it also resets the schema to what's in the dump file. schemas/functions/reset: Use now-available schemas/functions.sql to create the schema.

View differences:

Makefile
170 170

  
171 171
rmPublicSchema := $(call rmSchemaCmd,public)
172 172

  
173
db: mk_db rm_initial_public schemas/functions/clear schemas/install _always ;
173
db: mk_db rm_initial_public schemas/functions/reset schemas/install _always ;
174 174

  
175 175
mk_db: _always
176 176
	-echo "CREATE USER bien PASSWORD '$(bienPassword)';"|$(psqlAsAdmin)
......
215 215
confirmRmFunctions = $(call confirm,WARNING:\
216 216
This will delete the functions schema of your VegBIEN DB!)
217 217

  
218
schemas/functions/clear: _always
218
schemas/functions/reset: schemas/functions.sql _always
219 219
	@$(confirmRmFunctions)
220 220
	echo $(call rmSchemaCmd,functions)|$(psqlAsBien)
221
	echo $(call mkSchemaCmd,functions)|$(psqlAsBien)
221
	<$< $(psqlAsBien)
222 222

  
223 223
##### MySQL
224 224

  

Also available in: Unified diff