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/fixtures
Aravinth Manivannan 69a28299e2
migrations: a deadline at January 1st, 1970 is valid (#18237)
* migrations: a deadline at January 1st, 1970 is valid

Do not change the deadline value if it is set to January 1st, 1970.

Setting the deadline to year 9999 when it is zero (which is equal to
January 1st, 1970) modifies a deadline set to January 1st, 1970 which
is a valid date. In addition, setting a date in year 9999 will be
converted to a null date in some cases.

Signed-off-by: Loïc Dachary <loic@dachary.org>

* tests: set milestone.deadline_unix in fixtures

The value of deadline_unix must be set to 253370764800 (i.e. 9999-01-01) in
fixtures, otherwise it will be inserted as null which leads to
unexpected errors. For instance, DumpRepository will store a null
deadline_unix as 0 (i.e. 1970-01-01) and RestoreRepository will change
it to 9999-01-01.

Signed-off-by: Loïc Dachary <loic@dachary.org>

Co-authored-by: Loïc Dachary <loic@dachary.org>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
3 years ago
..
access.yml
access_token.yml
action.yml Fix heatmap activity (#15252) 4 years ago
attachment.yml Add repo_id for attachment (#16958) 3 years ago
collaboration.yml
comment.yml
commit_status.yml
commit_status_index.yml Fix commit status index problem (#17061) 3 years ago
deleted_branch.yml
deploy_key.yml
email_address.yml Always store primary email address into email_address table and also the state (#15956) 4 years ago
follow.yml
gpg_key.yml
gpg_key_import.yml
hook_task.yml
issue.yml Add filter by owner and team to issue/pulls search endpoint (#16662) 4 years ago
issue_assignees.yml
issue_index.yml Add a new table issue_index to store the max issue index so that issue could be deleted with no duplicated index (#15599) 4 years ago
issue_label.yml
issue_user.yml [API] ListIssues add more filters (#16174) 4 years ago
issue_watch.yml
label.yml API: fix set milestone on PR creation (#14981) 4 years ago
login_source.yml
milestone.yml migrations: a deadline at January 1st, 1970 is valid (#18237) 3 years ago
notice.yml
notification.yml
oauth2_application.yml
oauth2_authorization_code.yml
oauth2_grant.yml Fix wrong user in OpenID response (#16736) 4 years ago
org_user.yml
project.yml Kanban board (#8346) 5 years ago
project_board.yml Kanban board (#8346) 5 years ago
project_issue.yml Kanban board (#8346) 5 years ago
protected_branch.yml
public_key.yml
pull_request.yml Add review request api (#11355) 4 years ago
reaction.yml
release.yml [API] ListReleases add filter for draft and pre-releases (#16175) 4 years ago
renamed_branch.yml Add a simple way to rename branch like gh (#15870) 3 years ago
repo_archiver.yml Rework repository archive (#14723) 4 years ago
repo_indexer_status.yml
repo_redirect.yml
repo_topic.yml
repo_transfer.yml Repository transfer has to be confirmed, if user can not create repo for new owner (#14792) 4 years ago
repo_unit.yml Issues overview should not show issues from archived repos (#13220) 4 years ago
repository.yml Ensure that restricted users can access repos for which they are members (#17460) 3 years ago
review.yml Add dismiss review feature (#12674) 4 years ago
star.yml
stopwatch.yml
team.yml
team_repo.yml
team_unit.yml Team permission allow different unit has different permission (#17811) 3 years ago
team_user.yml
topic.yml
tracked_time.yml
two_factor.yml
u2f_registration.yml Allow U2F 2FA without TOTP (#11573) 3 years ago
user.yml Allow U2F 2FA without TOTP (#11573) 3 years ago
user_open_id.yml
user_redirect.yml Redirect on changed user and org name (#11649) 4 years ago
watch.yml
webhook.yml