You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/models/migrations
zeripath 2a565478d1
Tagger can be empty, as can Commit and Author - tolerate this (#15835)
Unfortunately some old repositories can have tags with empty Tagger, Commit
or Author. Go-Git variants will always have empty values for these whereas
the native git variant leaves them at nil. The simplest solution is just to
always have these set to empty Signatures.

v156 migration also makes the incorrect assumption that these cannot be empty.
Therefore add some handling to this and add logging and adjust broken
logging elsewhere in this migration.

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
4 years ago
..
fixtures Create Proper Migration Tests (#15116) 4 years ago
migrations.go OAuth2 auto-register (#5123) 4 years ago
migrations_test.go Create Proper Migration Tests (#15116) 4 years ago
testlogger_test.go Create Proper Migration Tests (#15116) 4 years ago
v70.go chore(models): rewrite code format. (#14754) 4 years ago
v71.go Use single shared random string generation function (#15741) 4 years ago
v72.go
v73.go
v74.go
v75.go
v76.go chore(models): rewrite code format. (#14754) 4 years ago
v77.go
v78.go
v79.go chore(models): rewrite code format. (#14754) 4 years ago
v80.go
v81.go
v82.go Migrations (v82,v96,v99,v136) remove dependencies (#12286) 5 years ago
v83.go
v84.go
v85.go Use single shared random string generation function (#15741) 4 years ago
v86.go
v87.go
v88.go chore(models): rewrite code format. (#14754) 4 years ago
v89.go
v90.go
v91.go
v92.go chore(models): rewrite code format. (#14754) 4 years ago
v93.go
v94.go
v95.go
v96.go chore(models): rewrite code format. (#14754) 4 years ago
v97.go
v98.go
v99.go Migrations (v82,v96,v99,v136) remove dependencies (#12286) 5 years ago
v100.go chore(models): rewrite code format. (#14754) 4 years ago
v101.go
v102.go Use transaction in V102 migration (#12395) 5 years ago
v103.go
v104.go chore(models): rewrite code format. (#14754) 4 years ago
v105.go chore(models): rewrite code format. (#14754) 4 years ago
v106.go
v107.go chore(models): rewrite code format. (#14754) 4 years ago
v108.go
v109.go
v110.go
v111.go chore(models): rewrite code format. (#14754) 4 years ago
v112.go Add a storage layer for attachments (#11387) 5 years ago
v113.go
v114.go chore(models): rewrite code format. (#14754) 4 years ago
v115.go chore(models): rewrite code format. (#14754) 4 years ago
v116.go chore(models): rewrite code format. (#14754) 4 years ago
v117.go
v118.go
v119.go
v120.go
v121.go
v122.go chore(models): rewrite code format. (#14754) 4 years ago
v123.go
v124.go chore(models): rewrite code format. (#14754) 4 years ago
v125.go
v126.go
v127.go
v128.go chore(models): rewrite code format. (#14754) 4 years ago
v129.go chore(models): rewrite code format. (#14754) 4 years ago
v130.go chore(models): rewrite code format. (#14754) 4 years ago
v131.go
v132.go
v133.go
v134.go chore(models): rewrite code format. (#14754) 4 years ago
v135.go
v136.go chore(models): rewrite code format. (#14754) 4 years ago
v137.go
v138.go
v139.go
v140.go
v141.go Fix migration v141 (#14387) 4 years ago
v142.go Add migration to set IsArchived false if it is null (#11853) 5 years ago
v143.go Decrease the num_stars when deleting a repo (#11954) 5 years ago
v144.go chore(models): rewrite code format. (#14754) 4 years ago
v145.go Fix Migration 145 on MSSQL if varchar is changed to nvarchar (#12445) 5 years ago
v146.go chore(models): rewrite code format. (#14754) 4 years ago
v147.go chore(models): rewrite code format. (#14754) 4 years ago
v148.go [BugFix] Fix comment broken issue ref dependence (#12651) 4 years ago
v149.go Add Created & Updated to Milestone (#12662) 4 years ago
v150.go Add Primary Key to Topic and RepoTopic (#12639) 4 years ago
v151.go Add migration for password algorithm change (#12784) 4 years ago
v152.go Add configurable Trust Models (#11712) 4 years ago
v153.go Add team support for review request (#12039) 4 years ago
v154.go Save TimeStamps for Star, Label, Follow, Watch and Collaboration to Database (#13124) 4 years ago
v155.go [Enhancement] Allow admin to merge pr with protected file changes (#12078) 4 years ago
v156.go Tagger can be empty, as can Commit and Author - tolerate this (#15835) 4 years ago
v157.go chore(models): rewrite code format. (#14754) 4 years ago
v158.go chore(models): rewrite code format. (#14754) 4 years ago
v159.go Include OriginalAuthor in Reaction constraint (#13505) 4 years ago
v160.go Add block on official review requests branch protection (#13705) 4 years ago
v161.go chore(models): rewrite code format. (#14754) 4 years ago
v162.go chore(models): rewrite code format. (#14754) 4 years ago
v163.go Change topic name size from 25 to 50 (#14150) 4 years ago
v164.go Minimal OpenID Connect implementation (#14139) 4 years ago
v165.go Fix wrong type on hooktask to convert typ from char(16) to varchar(16) (#14148) 4 years ago
v166.go Remove unused commit (#14741) 4 years ago
v167.go Redirect on changed user and org name (#11649) 4 years ago
v168.go noop (#14521) 4 years ago
v169.go Use OldRef instead of CommitSHA for DeleteBranch comments (#14604) 4 years ago
v170.go Add dismiss review feature (#12674) 4 years ago
v171.go Add v171 (addSortingColToProjectBoard) migration for #14634 (#14652) 4 years ago
v172.go v172 migration adds created_unix field instead of expiry (#15458) 4 years ago
v173.go Add UI to delete tracked times (#14100) 4 years ago
v174.go Delete Labels & IssueLabels on Repo Delete too (#15039) 4 years ago
v175.go Fix postgres ID sequences broken by recreate-table (#15015) 4 years ago
v176.go Create Proper Migration Tests (#15116) 4 years ago
v176_test.go Create Proper Migration Tests (#15116) 4 years ago
v177.go Create Proper Migration Tests (#15116) 4 years ago
v177_test.go Create Proper Migration Tests (#15116) 4 years ago
v178.go Add LFS Migration and Mirror (#14726) 4 years ago
v179.go OAuth2 auto-register (#5123) 4 years ago