소스 검색

Added imports from the previous database.

Michael Hope 3 년 전
부모
커밋
b9bc4f5347
2개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      Makefile
  2. 1 0
      update.sql

+ 8 - 0
Makefile 파일 보기

@@ -1,2 +1,10 @@
1 1
 version.py: Makefile
2 2
 	echo __version__ = \'$(shell git describe --always --dirty --long)\' > $@
3
+
4
+DB=$(shell cat niche.ini | grep ^db= | cut -d= -f2)
5
+
6
+import: $(wildcard mofi-*.sql.gz)
7
+	zcat $< \
8
+	| sed -r "s# CHARSET\=latin1# CHARSET\=utf8#g" \
9
+	| sed "s#ENGINE=MyISAM##" \
10
+	| mysql -u root -p $(DB)

+ 1 - 0
update.sql 파일 보기

@@ -0,0 +1 @@
1
+ALTER TABLE 1_users ADD contacts text;