mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-03-15 17:13:46 +01:00
Migrate to Xorm (#474)
close #234 * Migrate store * Migrate tests * Rewrite migrations * Init fresh DB in on step * Rm old stuff (meddler, sql files, dead code, ...)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// Copyright 2021 Woodpecker Authors
|
||||
// Copyright 2018 Drone.IO Inc.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,24 +19,24 @@ package model
|
||||
//
|
||||
// swagger:model feed
|
||||
type Feed struct {
|
||||
Owner string `json:"owner" meddler:"repo_owner"`
|
||||
Name string `json:"name" meddler:"repo_name"`
|
||||
FullName string `json:"full_name" meddler:"repo_full_name"`
|
||||
Owner string `json:"owner" xorm:"repo_owner"`
|
||||
Name string `json:"name" xorm:"repo_name"`
|
||||
FullName string `json:"full_name" xorm:"repo_full_name"`
|
||||
|
||||
Number int `json:"number,omitempty" meddler:"build_number,zeroisnull"`
|
||||
Event string `json:"event,omitempty" meddler:"build_event,zeroisnull"`
|
||||
Status string `json:"status,omitempty" meddler:"build_status,zeroisnull"`
|
||||
Created int64 `json:"created_at,omitempty" meddler:"build_created,zeroisnull"`
|
||||
Started int64 `json:"started_at,omitempty" meddler:"build_started,zeroisnull"`
|
||||
Finished int64 `json:"finished_at,omitempty" meddler:"build_finished,zeroisnull"`
|
||||
Commit string `json:"commit,omitempty" meddler:"build_commit,zeroisnull"`
|
||||
Branch string `json:"branch,omitempty" meddler:"build_branch,zeroisnull"`
|
||||
Ref string `json:"ref,omitempty" meddler:"build_ref,zeroisnull"`
|
||||
Refspec string `json:"refspec,omitempty" meddler:"build_refspec,zeroisnull"`
|
||||
Remote string `json:"remote,omitempty" meddler:"build_remote,zeroisnull"`
|
||||
Title string `json:"title,omitempty" meddler:"build_title,zeroisnull"`
|
||||
Message string `json:"message,omitempty" meddler:"build_message,zeroisnull"`
|
||||
Author string `json:"author,omitempty" meddler:"build_author,zeroisnull"`
|
||||
Avatar string `json:"author_avatar,omitempty" meddler:"build_avatar,zeroisnull"`
|
||||
Email string `json:"author_email,omitempty" meddler:"build_email,zeroisnull"`
|
||||
Number int64 `json:"number,omitempty" xorm:"build_number"`
|
||||
Event string `json:"event,omitempty" xorm:"build_event"`
|
||||
Status string `json:"status,omitempty" xorm:"build_status"`
|
||||
Created int64 `json:"created_at,omitempty" xorm:"build_created"`
|
||||
Started int64 `json:"started_at,omitempty" xorm:"build_started"`
|
||||
Finished int64 `json:"finished_at,omitempty" xorm:"build_finished"`
|
||||
Commit string `json:"commit,omitempty" xorm:"build_commit"`
|
||||
Branch string `json:"branch,omitempty" xorm:"build_branch"`
|
||||
Ref string `json:"ref,omitempty" xorm:"build_ref"`
|
||||
Refspec string `json:"refspec,omitempty" xorm:"build_refspec"`
|
||||
Remote string `json:"remote,omitempty" xorm:"build_remote"`
|
||||
Title string `json:"title,omitempty" xorm:"build_title"`
|
||||
Message string `json:"message,omitempty" xorm:"build_message"`
|
||||
Author string `json:"author,omitempty" xorm:"build_author"`
|
||||
Avatar string `json:"author_avatar,omitempty" xorm:"build_avatar"`
|
||||
Email string `json:"author_email,omitempty" xorm:"build_email"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user