@@ -20,16 +20,16 @@ type commitsTable struct {
2020// CommitsSchema is the schema for the commits table.
2121var CommitsSchema = sql.Schema {
2222 {Name : "repository_id" , Type : sql .Text , Nullable : false , Source : CommitsTableName },
23- {Name : "commit_hash" , Type : sql .Text , Nullable : false , Source : CommitsTableName },
23+ {Name : "commit_hash" , Type : sql .VarChar ( 40 ) , Nullable : false , Source : CommitsTableName },
2424 {Name : "commit_author_name" , Type : sql .Text , Nullable : false , Source : CommitsTableName },
25- {Name : "commit_author_email" , Type : sql .Text , Nullable : false , Source : CommitsTableName },
25+ {Name : "commit_author_email" , Type : sql .VarChar ( 254 ) , Nullable : false , Source : CommitsTableName },
2626 {Name : "commit_author_when" , Type : sql .Timestamp , Nullable : false , Source : CommitsTableName },
2727 {Name : "committer_name" , Type : sql .Text , Nullable : false , Source : CommitsTableName },
28- {Name : "committer_email" , Type : sql .Text , Nullable : false , Source : CommitsTableName },
28+ {Name : "committer_email" , Type : sql .VarChar ( 254 ) , Nullable : false , Source : CommitsTableName },
2929 {Name : "committer_when" , Type : sql .Timestamp , Nullable : false , Source : CommitsTableName },
3030 {Name : "commit_message" , Type : sql .Text , Nullable : false , Source : CommitsTableName },
31- {Name : "tree_hash" , Type : sql .Text , Nullable : false , Source : CommitsTableName },
32- {Name : "commit_parents" , Type : sql .Array (sql .Text ), Nullable : false , Source : CommitsTableName },
31+ {Name : "tree_hash" , Type : sql .VarChar ( 40 ) , Nullable : false , Source : CommitsTableName },
32+ {Name : "commit_parents" , Type : sql .Array (sql .VarChar ( 40 ) ), Nullable : false , Source : CommitsTableName },
3333}
3434
3535func newCommitsTable (pool * RepositoryPool ) * commitsTable {
0 commit comments