Quantcast
Channel: CNode:Node.js专业中文社区
Viewing all articles
Browse latest Browse all 14821

从MySQL备份数据到psql的工具

$
0
0

分享一个 从MySQL备份数据到 psql的工具 这里有可能需要改的地方是 db_converter.py里的有关日期的类型转换的地方,可能需要添加或者修改类似于这样的

elif type == "datetime":
	type = "timestamp with time zone"
	extra = extra.replace("NOT NULL", "")
elif type.startswith("datetime("):
	type = "timestamp with time zone"
	extra = extra.replace("NOT NULL", "")

Viewing all articles
Browse latest Browse all 14821

Trending Articles