Refuse to create new extension if legacy code is present on database
Closes #20
This commit is contained in:
@@ -25,7 +25,7 @@ PGXS := $(shell $(PG_CONFIG) --pgxs)
|
||||
include $(PGXS)
|
||||
|
||||
$(EXTENSION)--$(EXTVERSION).sql: $(CDBSCRIPTS) cartodb_hooks.sql cartodb_version.sql Makefile
|
||||
echo '\echo Use "CREATE EXTENSION cartodb" to load this file. \quit' > $@
|
||||
echo '\echo Use "CREATE EXTENSION $(EXTENSION)" to load this file. \quit' > $@
|
||||
cat $(CDBSCRIPTS) | \
|
||||
sed -e 's/\<public\./cartodb./g' \
|
||||
-e 's/:DATABASE_USERNAME/cdb_org_admin/g' >> $@
|
||||
|
||||
Reference in New Issue
Block a user