Project

General

Profile

« Previous | Next » 

Revision 5678

root Makefile: VegBIEN DB: Schemas: Added schemas/rename/% to rename the public schema

View differences:

Makefile
218 218
	@$(confirmRmPublicSchema)
219 219
	echo $(rmPublicSchema)|$(psqlAsBien)
220 220

  
221
schemas/rename/%: _always
222
	echo 'ALTER SCHEMA public RENAME TO "$*";'|$(psqlAsBien)
223
	$(MAKE) schemas/public/install
224

  
221 225
schemas/rotate: _always schemas/rotate-only schemas/public/install ;
222 226
schemas/rotate-only: _always
223 227
	echo 'ALTER SCHEMA public RENAME TO "public.$(version)";'|$(psqlAsBien)

Also available in: Unified diff