code.gitea.io/gitea@v1.22.3/models/migrations/fixtures/Test_RemoveInvalidLabels/comment.yml (about)

     1  # type Comment struct {
     2  #   ID      int64 `xorm:"pk autoincr"`
     3  #   Type    int   `xorm:"INDEX"`
     4  #   IssueID int64 `xorm:"INDEX"`
     5  #   LabelID int64
     6  # }
     7  #
     8  # we are only interested in type 7
     9  #
    10  
    11  -
    12    id: 1 # Should remain
    13    type: 6
    14    issue_id: 1
    15    label_id: 0
    16    should_remain: true
    17  -
    18    id: 2 # Should remain
    19    type: 7
    20    issue_id: 1 # repo_id: 1
    21    label_id: 1 # repo_id: 1
    22    should_remain: true
    23  -
    24    id: 3 # Should remain
    25    type: 7
    26    issue_id: 2 # repo_id: 2 owner_id: 1
    27    label_id: 2 # org_id: 1
    28    should_remain: true
    29  -
    30    id: 4 # Should be DELETED
    31    type: 7
    32    issue_id: 1 # repo_id: 1
    33    label_id: 3 # repo_id: 2
    34    should_remain: false
    35  -
    36    id: 5 # Should remain
    37    type: 7
    38    issue_id: 3 # repo_id: 1
    39    label_id: 1 # repo_id: 1
    40    should_remain: true
    41  -
    42    id: 6 # Should be DELETED
    43    type: 7
    44    issue_id: 3 # repo_id: 1 owner_id: 2
    45    label_id: 2 # org_id: 1
    46    should_remain: false
    47  -
    48    id: 7 # Should be DELETED
    49    type: 7
    50    issue_id: 3 # repo_id: 1 owner_id: 2
    51    label_id: 5 # repo_id: 3
    52    should_remain: false