commit提取贡献者创建时间

This commit is contained in:
xxq250 2023-04-19 20:16:28 +08:00
parent 77b4b51c42
commit 0b9ebbda4b
1 changed files with 2 additions and 0 deletions

View File

@ -47,6 +47,7 @@ namespace :batch_add_contributors do
else
sql = "INSERT INTO commit_contributors (`created_at`, `count`, `name`) VALUES ('#{commit_date_str}',1,'#{commiter['email']}')"
end
puts "sql====#{sql}"
sql_connection.execute(sql)
sql_connection.commit_db_transaction
@ -97,6 +98,7 @@ namespace :batch_add_contributors do
else
sql = "INSERT INTO commit_contributors (`created_at`, `count`, `name`) VALUES ('#{commit_date_str}',1,'#{commiter['email']}')"
end
puts "sql====#{sql}"
sql_connection.execute(sql)
sql_connection.commit_db_transaction