summaryrefslogtreecommitdiffstats
path: root/models/migrations
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Fix migration comment (#1241)Sandro Santilli2017-03-141-1/+1
|
* fix forget migration for wiki hooks (#1227)Lunny Xiao2017-03-132-0/+96
|
* Fix upgrade failed after ever rollback (#1194)Lunny Xiao2017-03-103-3/+17
| | | | | | | | * fix upgrade failed after rollback * fix upgrade failed after rollback * fix possible upgrade twice fail after rollback
* Don't rewrite non-gitea public keys (#906)Lunny Xiao2017-03-032-0/+55
| | | | | | * don't rewrite non-gitea public keys * add comment for public key
* Allow migrating installations with no local avatars (#1056)Sandro Santilli2017-02-262-1/+5
|
* Fix avatar enumable (#1049)Lunny Xiao2017-02-252-0/+68
| | | | | | * fix avatar enumable * fix import style
* Take back control of hooks (#1006)Lunny Xiao2017-02-233-2/+89
| | | | | | | | | | | | | | | | * git: delegate all server-side Git hooks (#1623) * create hooks directories * take control hooks back * fix lint * bug fixed and minor changes * fix imports style * fix migration scripts
* Oauth2 consumer (#679)Willem van Dreumel2017-02-222-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | * initial stuff for oauth2 login, fails on: * login button on the signIn page to start the OAuth2 flow and a callback for each provider Only GitHub is implemented for now * show login button only when the OAuth2 consumer is configured (and activated) * create macaron group for oauth2 urls * prevent net/http in modules (other then oauth2) * use a new data sessions oauth2 folder for storing the oauth2 session data * add missing 2FA when this is enabled on the user * add password option for OAuth2 user , for use with git over http and login to the GUI * add tip for registering a GitHub OAuth application * at startup of Gitea register all configured providers and also on adding/deleting of new providers * custom handling of errors in oauth2 request init + show better tip * add ExternalLoginUser model and migration script to add it to database * link a external account to an existing account (still need to handle wrong login and signup) and remove if user is removed * remove the linked external account from the user his settings * if user is unknown we allow him to register a new account or link it to some existing account * sign up with button on signin page (als change OAuth2Provider structure so we can store basic stuff about providers) * from gorilla/sessions docs: "Important Note: If you aren't using gorilla/mux, you need to wrap your handlers with context.ClearHandler as or else you will leak memory!" (we're using gorilla/sessions for storing oauth2 sessions) * use updated goth lib that now supports getting the OAuth2 user if the AccessToken is still valid instead of re-authenticating (prevent flooding the OAuth2 provider)
* Protected branches system (#339)Denis Denisov2017-02-212-0/+31
| | | | | | | | | | | | | | | | | | | | * Protected branches system * Moved default branch to branches section (`:org/:reponame/settings/branches`). * Initial support Protected Branch. - Admin does not restrict - Owner not to limit - To write permission restrictions * reformat tmpl * finished the UI and add/delete protected branch response * remove unused comment * indent all the template files and remove ru translations since we use crowdin * fix the push bug
* add missing copyright header (#992)Willem van Dreumel2017-02-211-0/+4
|
* fix some older Gogs upgrade to Gitea (#929)Lunny Xiao2017-02-151-1/+1
|
* Add units concept for modulable functions of a repository (#742)Lunny Xiao2017-02-042-2/+121
| | | | | | | | | | | | | | | | * Add units concept for modulable functions of a repository * remove unused comment codes & fix lints and tests * remove unused comment codes * use struct config instead of map * fix lint * rm wrong files * fix tests
* Cleanup log messagingGabriel Jackson2017-02-021-1/+1
| | | | | | | | | This change corrects a few logging issues: * Standardized formatting errors with '%v'. * Standardized failure warning word usage. * Corrected an instance of using the standard log library when the gitea log library should be used instead.
* Restrict creating organisations by user (#193)Schwobaland2016-12-312-1/+33
| | | | | | | | | | | | | | | | | | | | | | * restrict creating organizations based on right on user * revert bindata.go * reverse vendor lib * revert goimports change * set AllowCreateOrganization default value to true * revert locale * added default value for AllowCreateOrganization * fix typo in migration-comment * fix comment * add coments in migration
* Replace Gogs with Gitea (#520)Bwko2016-12-281-2/+2
|
* Enables mssql support (#383)btrepp2016-12-241-0/+1
| | | | | | | | | | | | | | | | | | | * Enables mssql support Port of dlobs work in gogs. Enables options in index.js Enables MSSQL as a database option in go. Sets ID to 0 on initial migration. Required for MSSQL insert statements. Signed-off-by: Beau Trepp <beautrepp@gmail.com> * Vendors in denisenkom/go-mssqldb Includes golang.org/x/crypto/md4 as this is required by go-msssqldb Signed-off-by: Beau Trepp <beautrepp@gmail.com>
* Fix random string generator (#384)Denis Denisov2016-12-201-2/+6
| | | | | | | | | | | * Remove unused custom-alphabet feature of random string generator Fix random string generator Random string generator should return error if it fails to read random data via crypto/rand * Fixes variable (un)initialization mixed assign Update test GetRandomString
* golint fixed for models/migrations (#291)Lunny Xiao2016-11-282-13/+51
|
* Remember diff view style (#163)Andrey Nering2016-11-132-1/+15
|
* Update import paths from github.com/go-gitea to code.gitea.io (#135)Sandro Santilli2016-11-101-3/+3
| | | | | | | - Update import paths from github.com/go-gitea to code.gitea.io - Fix import path for travis See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
* use x.SQL instead of x.SqlLunny Xiao2016-11-101-1/+1
|
* Change import reference to match gitea instead of gogs (#37)Rémy Boulanouar2016-11-031-3/+3
|
* Minor code fix [CI SKIP]Unknwon2016-08-311-0/+1
|
* migrations: sync table firstUnknwon2016-08-262-3/+9
|
* migrations: set comment updated as createdUnknwon2016-08-262-0/+21
|
* Remove redundant Unix timestamp method callUnknwon2016-07-231-6/+6
| | | | Unix() already uses UTC as timezone