summaryrefslogtreecommitdiffstats
path: root/models/migrations
Commit message (Collapse)AuthorAgeFilesLines
* Remove IsOwner, NumTeams from OrgUser (#3269)Ethan Koenig2018-01-082-0/+35
|
* Writable deploy keys (closes #671) (#3225)Vlad Temian2018-01-072-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add is_writable checkbox to deploy keys interface * Add writable key option to deploy key form * Add support for writable ssh keys in the interface * Rename IsWritable to ReadOnly * Test: create read-only and read-write deploy keys via api * Add DeployKey access mode migration * Update gitea sdk via govendor * Fix deploykey migration * Add unittests for writable deploy keys * Move template text to locale * Remove implicit column update * Remove duplicate locales * Replace ReadOnly field with IsReadOnly method * Fix deploy_keys related integration test * Rename v54 migration with v55 * Fix migration hell
* Add Pull Request merge options - Ignore white-space for conflict checking, ↵Lauris BH2018-01-052-0/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rebase, Squash merge (#3188) * Pull request options migration and UI in settings * Add ignore whitespace functionality * Fix settings if pull requests are disabled * Fix migration transaction * Merge with Rebase functionality * UI changes and related functionality for pull request merging button * Implement squash functionality * Fix rebase merging * Fix pull request merge tests * Add squash and rebase tests * Fix API method to reuse default message functions * Some refactoring and small fixes * Remove more hardcoded values from tests * Remove unneeded check from API method * Fix variable name and comment typo * Fix reset commit count after PR merge
* Add repo-sync-releases admin command (#3254)Sandro Santilli2017-12-311-1/+1
| | | | | | | | | | | | | | | | | | * Add repo-sync-releases admin command Will help recovering corrupted database, see #3247 * Load repos in chunks of 10, exit with error if unable to get a list, scan private repos, fix typo * Fix debug output about num releases * Introduce RepositoryListDefaultPageSize constant, set to 64 Use it from the new admin command * Use RepositoryListDefaultPageSize in more places * Document RepositoryListDefaultPageSize
* Reorder migrations, skip errors if running migration again (#3160)Lauris BH2017-12-1313-292/+301
| | | | | | | | * Reorder migrations, skip errors if running migration again * Rename migration file names to match migration version * Add note about ingored error
* Add reactions to issues/PR and comments (#2856)Lauris BH2017-12-042-0/+30
|
* Fix git lfs path (#3016)Antoine GIRARD2017-11-292-1/+34
| | | | | | | | * add suffix .git * Remove Content-Type on GET methods * Add migrations to force creation before any further potential migration
* Code/repo search (#2582)Ethan Koenig2017-10-272-0/+27
| | | Indexed search of repository contents (for default branch only)
* Add branch overiew page (#2108)Bwko2017-10-262-0/+31
| | | | | | | | * Add branch overiew page * fix changed method name on sub menu * remove unused code
* Use buffersize to reduce database connection when iterate (#2724)Lunny Xiao2017-10-213-3/+3
| | | | | | | | * use buffersize to reduce database connection when iterate * fix typo * add default value on app.ini comment
* Fix organization watch migration (#2703)Lauris BH2017-10-141-1/+1
|
* Fix orgnization user watch repository (#2670)Lunny Xiao2017-10-142-0/+38
| | | | | | | | | | * remove orgnization watch repositories * fix migration * fix typo and missing change * remove unused code
* Rewrite migrations to not depend on future code changes (#2604)David Schneiderbauer2017-10-085-63/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * v38 migration used an outdated version of RepoUnit model (#2602) * change repoUnit model in migration * fix v16 migration repo_unit table * fix lint error * move type definition inside function Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com> * fix lint error Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com> * Fix time tracking migration * Refactor code * Fix migration from Gogs * v38 migration used an outdated version of RepoUnit model (#2602) * change repoUnit model in migration * fix v16 migration repo_unit table * fix lint error * move type definition inside function Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com> * fix lint error Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com> * Fix time tracking migration * Refactor code * Fix migration from Gogs * add error check Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com> * Additiomal fixes for migrations * Fix timetracking migration * Add back nil check
* Replace deprecated Id method with ID (#2655)Ethan Koenig2017-10-054-5/+5
|
* Fix index column deletion (#2651)Morlinest2017-10-041-1/+1
|
* Remove repo unit index (#2621)Morlinest2017-10-022-0/+30
| | | | | | * Remove repo unit index * Fix sqlite
* Fix doubled issue tab introduced in migration v16 (#2611)David Schneiderbauer2017-09-282-0/+71
| | | | | * fix duplicate issue tab as UnitTypeIssue and UnitTypeExternalTracker are existing at the same time Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* Fix broken migration to add can_push field back to table (#2574)Lauris BH2017-09-231-2/+10
|
* Fix can_push value to false in protected_branch (#2560)Lauris BH2017-09-202-0/+20
|
* Sync releases table with tags on push and for mirrors (#2459)Lauris BH2017-09-202-0/+59
| | | | | | | | | | | | | | | * Sync releases table with tags on push and for mirrors * Code style fixes * Fix api to return only releases * Optimize release creation and update Minimize posibility of race conditions * Fix release lower tag name updating * handle tag reference update by addionally comparing commit id
* Fix lint errors (#2547)Ethan Koenig2017-09-192-9/+2
|
* Restructure markup & markdown to prepare for multiple markup language… (#2411)Lunny Xiao2017-09-161-2/+2
| | | | | | | | | | * restructure markup & markdown to prepare for multiple markup languages support * adjust some functions between markdown and markup * fix tests * improve the comments
* Prevent sending emails and notifications to inactive users (#2384)David Schneiderbauer2017-09-162-0/+44
| | | | | | | | | | | | | | | | | | | | | | * Filter inactive users before sending emails or creating browser notifications Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com> * fix formatting issues Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com> * included requested changes Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com> * optimized database queries * rebasing new master and add tablenames for clarification in xorm queries * remove escaped quotationmarks using backticks Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* improve protected branch to add whitelist support (#2451)Lunny Xiao2017-09-142-0/+57
| | | | | | | | | | | | | | | | | | | | * improve protected branch to add whitelist support * fix lint * fix style check * fix tests * fix description on UI and import * fix test * bug fixed * fix tests and languages * move isSliceInt64Eq to util pkg; improve function names & typo
* Feature: Timetracking (#2211)Jonas Franz2017-09-123-4/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added comment's hashtag to url for mail notifications. * Added explanation to return statement + documentation. * Replacing in-line link generation with HTMLURL. (+gofmt) * Replaced action-based model with nil-based model. (+gofmt) * Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants. * Updating comment for mailIssueCommentToParticipants * Added link to comment in "Dashboard" * Deleting feed entry if a comment is going to be deleted * Added migration * Added improved migration to add a CommentID column to action. * Added improved links to comments in feed entries. * Fixes #1956 by filtering for deleted comments that are referenced in actions. * Introducing "IsDeleted" column to action. * Adding design draft (not functional) * Adding database models for stopwatches and trackedtimes * See go-gitea/gitea#967 * Adding design draft (not functional) * Adding translations and improving design * Implementing stopwatch (for timetracking) * Make UI functional * Add hints in timeline for time tracking events * Implementing timetracking feature * Adding "Add time manual" option * Improved stopwatch * Created report of total spent time by user * Only showing total time spent if theire is something to show. * Adding license headers. * Improved error handling for "Add Time Manual" * Adding @sapks 's changes, refactoring * Adding API for feature tracking * Adding unit test * Adding DISABLE/ENABLE option to Repository settings page * Improving translations * Applying @sapk 's changes * Removing repo_unit and using IssuesSetting for disabling/enabling timetracker * Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu * Improving documentation * Fixing vendor/ folder * Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks ) * Restricting write access to timetracking based on the repo settings (Proposed by @lafriks ) * Fixed minor permissions bug. * Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo * Allow assignees and authors to track there time too. * Fixed some build-time-errors + logical errors. * Removing unused Get...ByID functions * Moving IsTimetrackerEnabled from context.Repository to models.Repository * Adding a seperate file for issue related repo functions * Adding license headers * Fixed GetUserByParams return 404 * Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons * Adding /repos/:username/times to get all tracked times of the repo * Updating sdk-dependency * Updating swagger.v1.json * Adding warning if user has already a running stopwatch (auto-timetracker) * Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions) * Changing code.gitea.io/sdk back to code.gitea.io/sdk * Correcting spelling mistake * Updating vendor.json * Changing GET stopwatch/toggle to POST stopwatch/toggle * Changing GET stopwatch/cancel to POST stopwatch/cancel * Added migration for stopwatches/timetracking * Fixed some access bugs for read-only users * Added default allow only contributors to track time value to config * Fixed migration by chaging x.Iterate to x.Find * Resorted imports * Moved Add Time Manually form to repo_form.go * Removed "Seconds" field from Add Time Manually * Resorted imports * Improved permission checking * Fixed some bugs * Added integration test * gofmt * Adding integration test by @lafriks * Added created_unix to comment fixtures * Using last event instead of a fixed event * Adding another integration test by @lafriks * Fixing bug Timetracker enabled causing error 500 at sidebar.tpl * Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning. * Returning TrackedTime instead of AddTimeOption at AddTime. * Updating SDK from go-gitea/go-sdk#69 * Resetting Go-SDK back to default repository * Fixing test-vendor by changing ini back to original repository * Adding "tags" to swagger spec * govendor sync * Removed duplicate * Formatting templates * Adding IsTimetrackingEnabled checks to API * Improving translations / english texts * Improving documentation * Updating swagger spec * Fixing integration test caused be translation-changes * Removed encoding issues in local_en-US.ini. * "Added" copyright line * Moved unit.IssuesConfig().EnableTimetracker into a != nil check * Removed some other encoding issues in local_en-US.ini * Improved javascript by checking if data-context exists * Replaced manual comment creation with CreateComment * Removed unnecessary code * Improved error checking * Small cosmetic changes * Replaced int>string>duration parsing with int>duration parsing * Fixed encoding issues * Removed unused imports Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Fix migration from pre-v15 to 1.2.0 (#2460)Lauris BH2017-09-051-0/+1
|
* Convert xorm literal queries to method calls (#2253)G2017-08-042-4/+2
|
* Remove unit types commits and settings (#2161)Lauris BH2017-07-173-16/+74
| | | | | | | | | | * Remove unit types commits and settings * Can not limit units in administrator teams * Limit changing units only to teams with read and write access mode * Small code optimization
* Fix username rendering bug (#2122)Ethan Koenig2017-07-122-0/+34
| | | | | | | | * Fix username rendering bug * XSS integration test * Migration to unescape user full names
* Fix git hooks update to receive required arguments. Fixes #2090 (#2095)Lauris BH2017-07-022-0/+17
| | | * Changed migration calling so that migrations can use models package
* Fix "Dashboard shows deleted comments" (#1995)Jonas Franz2017-06-252-0/+27
|
* Refactor session close as xorm already does everything needed internally (#2020)Lauris BH2017-06-212-13/+6
|
* Migration to fix existing owner team units (#1873)Ethan Koenig2017-06-052-0/+27
|
* Rename misnamed migration (#1867)Ethan Koenig2017-06-041-12/+0
|
* Fix activity feed (#1779)Ethan Koenig2017-05-262-0/+46
| | | | | | | | | | | | * Fix activity feed Preserve actions after user/repo name change * Add missing comment * Fix migration, and remove fields completely * Tests
* Add units to team (#947)Lunny Xiao2017-05-183-1/+26
| | | | | | | | | | | | | | | | | | * add units to team * fix lint * finish team setting backend * finished permission controll on routes * fix import blank line * add unit check on ssh/http pull and push and fix test failed * fix fixtures data * remove unused code
* fix avatar update bug (#1729)Lunny Xiao2017-05-161-0/+1
|
* LDAP user synchronization (#1478)Lauris BH2017-05-102-0/+37
|
* Add primary key and index to external login user table (#1656)Lauris BH2017-05-022-0/+40
|
* Fix broken migration v27 (#1504)Jonas Östanbäck2017-04-301-12/+30
| | | | Mirror.interval column type needed to be changed to bigint. Correct interval where the interval set is < MinInterval.
* Status-API (#1332)Kim "BKC" Carlbäcker2017-04-212-0/+36
|
* Repo size in admin panel (#1482)Jonas2017-04-112-0/+79
| | | | | | | | | | | | | | | * Implementation of the feature to view repository size in admin panel * Move GetRepoSize to git module * Repository.RepoSize -> Repository.Size * RepoSize -> Size in template * Redo a few bits and pieces * Update size when syncing mirror or forking * Remove GetRepoSize * Changed fatal errors to error message * Copy migration code from Gogs * make fmt
* Mirror sync interval specified as duration string (#1407)Jonas2017-04-082-0/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Sync interval specifed as duration string * Changed mirror interval text * make fmt * Add MinInterval for mirror sync * Use duration internally * Changed min default to 10m * make fmt * Incorrect default * Removed defaults in MustDuration() * Add Mirror interval migration * Default values corrected * Use transaction during migration * Change http 500 to page with error message * Cleanup session.commit()
* rewrite pre-commit, post-commit and options hooks (fixes #1250) (#1257)Philippe Kueck2017-03-232-0/+89
| | | | | | | | | | | | | | * issue #1250, replace {pre,post}-receive and update hooks with a single shell script that does not require custom hooks to be a sh-script * issue #1250, make script posix compilant * v23, add migration script to update {pre,post}-receive and update hooks * migration: use a more common name and rename v23 to v26 to avoid conflicts * gofmt'ed and added copyright header * fix SyncRepositoryHooks to also sync wiki repos
* fix migration failed when authorized_keys is not exist (#1180)Lunny Xiao2017-03-231-0/+5
|
* Run "make fmt" with go-1.6 (#1333)Sandro Santilli2017-03-211-4/+3
|
* Show user OpenID URIs in their profile (#1314)Sandro Santilli2017-03-202-0/+20
|
* fix gpg wrong column typesLunny Xiao2017-03-202-0/+52
|
* Login via OpenID-2.0 (#618)Sandro Santilli2017-03-172-0/+28
|
* Fix typos in models/ and modules/ (#1248)Ethan Koenig2017-03-151-1/+1
|