浏览代码

srdb1/schema: proper path in Makefile to generate mongo script for version table content

Daniel-Constantin Mierla 10 年之前
父节点
当前提交
922c4c0dd1
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      lib/srdb1/schema/Makefile

+ 3 - 3
lib/srdb1/schema/Makefile

@@ -209,16 +209,16 @@ mongodb:
 	done
 	done
 	@# small hack to create the version table entries, this is here easier as with XSL
 	@# small hack to create the version table entries, this is here easier as with XSL
 	@echo "use kamailio;" \
 	@echo "use kamailio;" \
-		> "$(SCHEME)/dbtext/kamailio/version-create.mongo" ;
+		> "$(SCHEME)/mongodb/kamailio/version-create.mongo" ;
 	@echo "db.createCollection(\"version\");" \
 	@echo "db.createCollection(\"version\");" \
-		>> "$(SCHEME)/dbtext/kamailio/version-create.mongo" ;
+		>> "$(SCHEME)/mongodb/kamailio/version-create.mongo" ;
 	@for FILE in $(sort $(wildcard $(SCHEME)/mongodb/kamailio/*.json)) ; do \
 	@for FILE in $(sort $(wildcard $(SCHEME)/mongodb/kamailio/*.json)) ; do \
 		if [ -f "$$FILE" ]; then \
 		if [ -f "$$FILE" ]; then \
 			if [  "$$FILE" != "$(SCHEME)/mongodb/kamailio/version.json" ]; then \
 			if [  "$$FILE" != "$(SCHEME)/mongodb/kamailio/version.json" ]; then \
 				VN=`grep '"version":' "$$FILE" | grep -o -E '[0-9]+'` ; \
 				VN=`grep '"version":' "$$FILE" | grep -o -E '[0-9]+'` ; \
 				FN=`basename $$FILE .json` ;\
 				FN=`basename $$FILE .json` ;\
 				echo "db.getCollection(\"version\").insert({ table_name: \"$$FN\", table_version: NumberInt($$VN) });" \
 				echo "db.getCollection(\"version\").insert({ table_name: \"$$FN\", table_version: NumberInt($$VN) });" \
-						>> "$(SCHEME)/dbtext/kamailio/version-create.mongo" ; \
+						>> "$(SCHEME)/mongodb/kamailio/version-create.mongo" ; \
 			fi ; \
 			fi ; \
 		fi ; \
 		fi ; \
 	done ; \
 	done ; \