vikunja-api/pkg/models
konrad 08205008e7 Migrate all timestamps to real iso dates (#594)
Fix query param name

Add option to include null results when filtering

Always set db time to gmt

Fix null filter

Fix timezone setting for todoist parsing

Fix timezone setting for wunderlist parsing

Fix import

Fix caldav reminder parsing

Use timezone from config

Add error and test for invalid filter values

Fix integration tests

Remove task collection date hack

Fix task filter

Fix lint

Fix tests and fixtures for date timezone stuff

Properly set timezone

Change fixtures time zone to gmt

Set db timezone

Set created and updated timestamps for all fixtures

Fix lint

Fix test fixtures

Fix misspell

Fix test fixtures

Partially fix tests

Remove timeutil package

Remove adding _unix suffix hack

Remove _unix suffix

Move all timeutil.TimeStamp to time.Time

Remove all Unix suffixes in field names

Add better error messages when running migrations

Make sure to not migrate 0 unix timestamps to 1970 iso dates

Add migration script for sqlite

Add converting sqlite values

Convert 0 unix timestamps to null in postgres

Convert 0 to null in timestamps

Automatically rename _unix suffix

Add all tables and columns for migration

Fix sql migration query for mysql

Fail with an error if trying to use an unsupported dbms

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/594
2020-06-27 17:04:01 +00:00
..
bulk_task.go Migrate all timestamps to real iso dates (#594) 2020-06-27 17:04:01 +00:00
bulk_task_test.go Ensure consistent naming of title fields (#528) 2020-05-16 10:17:44 +00:00
error.go Migrate all timestamps to real iso dates (#594) 2020-06-27 17:04:01 +00:00
kanban.go Migrate all timestamps to real iso dates (#594) 2020-06-27 17:04:01 +00:00
kanban_rights.go Kanban (#393) 2020-04-19 07:27:28 +00:00
kanban_test.go Add real buckets for tasks which don't have one (#446) 2020-04-25 20:32:02 +00:00
label.go Migrate all timestamps to real iso dates (#594) 2020-06-27 17:04:01 +00:00
label_rights.go Update xorm to v1 (#323) 2020-04-12 17:29:24 +00:00
label_task.go Migrate all timestamps to real iso dates (#594) 2020-06-27 17:04:01 +00:00
label_task_rights.go Update copyright header 2020-02-07 17:27:45 +01:00
label_task_test.go Migrate all timestamps to real iso dates (#594) 2020-06-27 17:04:01 +00:00
label_test.go Migrate all timestamps to real iso dates (#594) 2020-06-27 17:04:01 +00:00
link_sharing.go Migrate all timestamps to real iso dates (#594) 2020-06-27 17:04:01 +00:00
link_sharing_rights.go Fix link share creation & creating admin link shares without admin rights 2020-04-27 12:51:09 +02:00
list.go Migrate all timestamps to real iso dates (#594) 2020-06-27 17:04:01 +00:00
list_rights.go Add support for archiving lists and namespaces (#152) 2020-03-15 21:50:39 +00:00
list_team.go Migrate all timestamps to real iso dates (#594) 2020-06-27 17:04:01 +00:00
list_team_rights.go Update copyright header 2020-02-07 17:27:45 +01:00
list_team_test.go Migrate all timestamps to real iso dates (#594) 2020-06-27 17:04:01 +00:00
list_test.go Update copyright header 2020-02-07 17:27:45 +01:00
list_users.go Migrate all timestamps to real iso dates (#594) 2020-06-27 17:04:01 +00:00
list_users_rights.go Update copyright header 2020-02-07 17:27:45 +01:00
list_users_rights_test.go Migrate all timestamps to real iso dates (#594) 2020-06-27 17:04:01 +00:00
list_users_test.go Migrate all timestamps to real iso dates (#594) 2020-06-27 17:04:01 +00:00
main_test.go Migrate all timestamps to real iso dates (#594) 2020-06-27 17:04:01 +00:00
message.go Update copyright header 2020-02-07 17:27:45 +01:00
models.go Migrate all timestamps to real iso dates (#594) 2020-06-27 17:04:01 +00:00
namespace.go Migrate all timestamps to real iso dates (#594) 2020-06-27 17:04:01 +00:00
namespace_rights.go Add support for archiving lists and namespaces (#152) 2020-03-15 21:50:39 +00:00
namespace_team.go Migrate all timestamps to real iso dates (#594) 2020-06-27 17:04:01 +00:00
namespace_team_rights.go Update copyright header 2020-02-07 17:27:45 +01:00
namespace_team_rights_test.go Migrate all timestamps to real iso dates (#594) 2020-06-27 17:04:01 +00:00
namespace_team_test.go Migrate all timestamps to real iso dates (#594) 2020-06-27 17:04:01 +00:00
namespace_test.go Ensure consistent naming of title fields (#528) 2020-05-16 10:17:44 +00:00
namespace_users.go Migrate all timestamps to real iso dates (#594) 2020-06-27 17:04:01 +00:00
namespace_users_rights.go Update copyright header 2020-02-07 17:27:45 +01:00
namespace_users_rights_test.go Migrate all timestamps to real iso dates (#594) 2020-06-27 17:04:01 +00:00
namespace_users_test.go Migrate all timestamps to real iso dates (#594) 2020-06-27 17:04:01 +00:00
rights.go Update copyright header 2020-02-07 17:27:45 +01:00
task_assignees.go Migrate all timestamps to real iso dates (#594) 2020-06-27 17:04:01 +00:00
task_assignees_rights.go Update copyright header 2020-02-07 17:27:45 +01:00
task_attachment.go Migrate all timestamps to real iso dates (#594) 2020-06-27 17:04:01 +00:00
task_attachment_rights.go Update copyright header 2020-02-07 17:27:45 +01:00
task_attachment_test.go Add postgres support (#135) 2020-02-16 21:42:04 +00:00
task_collection.go Migrate all timestamps to real iso dates (#594) 2020-06-27 17:04:01 +00:00
task_collection_filter.go Migrate all timestamps to real iso dates (#594) 2020-06-27 17:04:01 +00:00
task_collection_sort.go Migrate all timestamps to real iso dates (#594) 2020-06-27 17:04:01 +00:00
task_collection_sort_test.go Migrate all timestamps to real iso dates (#594) 2020-06-27 17:04:01 +00:00
task_collection_test.go Migrate all timestamps to real iso dates (#594) 2020-06-27 17:04:01 +00:00
task_comment_rights.go Task Comments (#138) 2020-02-19 21:57:56 +00:00
task_comments.go Migrate all timestamps to real iso dates (#594) 2020-06-27 17:04:01 +00:00
task_comments_test.go Make sure the author is returned when creating a new comment 2020-02-25 21:18:42 +01:00
task_relation.go Migrate all timestamps to real iso dates (#594) 2020-06-27 17:04:01 +00:00
task_relation_rights.go Update copyright year (#118) 2020-01-09 17:33:22 +00:00
task_relation_test.go Refactor User and DB handling (#123) 2020-01-26 17:08:06 +00:00
tasks.go Migrate all timestamps to real iso dates (#594) 2020-06-27 17:04:01 +00:00
tasks_rights.go Add moving tasks between lists (#389) 2020-04-18 12:35:37 +00:00
tasks_test.go Migrate all timestamps to real iso dates (#594) 2020-06-27 17:04:01 +00:00
team_members.go Update copyright header 2020-02-07 17:27:45 +01:00
team_members_rights.go Update copyright header 2020-02-07 17:27:45 +01:00
team_members_test.go Add postgres support (#135) 2020-02-16 21:42:04 +00:00
teams.go Migrate all timestamps to real iso dates (#594) 2020-06-27 17:04:01 +00:00
teams_rights.go Update copyright header 2020-02-07 17:27:45 +01:00
teams_rights_test.go Migrate all timestamps to real iso dates (#594) 2020-06-27 17:04:01 +00:00
teams_test.go Add postgres support (#135) 2020-02-16 21:42:04 +00:00
unit_tests.go Kanban (#393) 2020-04-19 07:27:28 +00:00
unsplash.go List Backgrounds (#568) 2020-05-26 20:07:55 +00:00
user_list.go Update xorm to use the new import path (#133) 2020-02-14 16:34:25 +00:00
users_list_test.go Migrate all timestamps to real iso dates (#594) 2020-06-27 17:04:01 +00:00