浏览代码

restore: ignore created_unix for milestone table (#5264)

Unknwon 6 年之前
父节点
当前提交
029b33c650
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      models/models.go

+ 2 - 1
models/models.go

@@ -300,7 +300,8 @@ func ImportDatabase(dirPath string, verbose bool) (err error) {
 	snakeMapper := core.SnakeMapper{}
 
 	skipInsertProcessors := map[string]bool{
-		"mirror": true,
+		"mirror":    true,
+		"milestone": true,
 	}
 
 	// Purposely create a local variable to not modify global variable