浏览代码

fix: commit database timestamp

claws 4 年之前
父节点
当前提交
472839f7f8

+ 1 - 1
web/src/main/java/cn/seecoder/web/service/impl/project/CommitServiceImpl.java

@@ -175,7 +175,7 @@ public class CommitServiceImpl implements CommitService {
             commitPO.setMessage(commit.getMessage());
             commitPO.setTitle(commit.getTitle());
             commitPO.setProjectId(projectId);
-//            commitPO.setTimestamp(commit.getTimestamp());
+            commitPO.setTimestamp(commit.getTimestamp());
             commitPO.setGitlabUsername(commit.getGitlabUsername());
             commitPO.setEmail(commit.getAuthorEmail());
             commitPO.setRelatedType(relatedType);

+ 1 - 1
web/src/main/resources/sql/table_init.sql

@@ -47,7 +47,7 @@ create table if not exists devcloud.commit
         primary key,
     message         text         null,
     title           text         null,
-    timestamp       varchar(31)  null,
+    timestamp       varchar(63)  null,
     gitlab_username varchar(31)  null,
     related_id      int          null,
     project_id      int          null,