Unknwon
613139e7be
Enable Go modules ( #5835 )
...
* Remove vendor
* Enable Go modules
* ci: add command to fetch dependencies
* ci: update setting
* ci: update settings
* Require Go 1.11
* Rename module name to gogs.io/gogs
2019-10-23 23:03:17 -07:00
Unknwon
77275a9b31
models: rename Id to ID
2018-08-16 20:26:09 +08:00
Unknwon
4d18df204a
Merge branch 'pr-5277' into develop
...
# Conflicts:
# models/migrations/migrations.go
2018-06-11 21:32:57 +08:00
奶爸
04b4431bc0
migrations: clean unlinked webhook and hook_tasks
2018-06-11 21:29:24 +08:00
Sergey Dryabzhinsky
57897cc8c2
repo: update repository description field to contain more than 256 symbols ( #5219 )
...
* Update repository description field to contain more than 256 symbols
- update repository model - description field now is `TEXT` and limited by 4000 symbols
- new migration
- add description to html forms - repo creation and repo settings
- add translation for description
* Update for description field, new features
- add autosize (height) for description textarea, new plugin
- set max description length to 512 symbols
- update locales
* Fix migration - typo in var
* Update repo description behaviour
- add textarea autosize for /repo/create
- add symbols counter under description testarea (create/edit)
* Fix function definition - it a var
* Revert ru-RU locale
* Update by review
- Use type `varchar(512)` in migration
- Remove unused files from autosize plugin
* Fix migration - new project paths
* Fixes after review 2
- copyright year
- format includes
- use switch instead of multi-if
* Remove unused `default:` option.
2018-06-11 20:34:26 +08:00
Unknwon
fbecc18e2e
*: use jsoniter to replace encoding/json
2018-06-09 17:32:58 +08:00
Unknwon
aff4208244
*: rename "gogits" to "gogs"
2018-05-27 08:53:48 +08:00
Unknwon
86d249eb16
migrations: remove unused function and fix compile error
2018-03-09 00:33:40 -05:00
Unknwon
af3911b833
MISC: update README and migration comment
2017-10-22 19:29:29 -04:00
Unknwon
0e6a6bf880
Refactoring: remove sessionRelease()
...
XORM supports automatic roll back in session Close() already.
2017-06-11 03:06:36 -04:00
Unknwon
0e271799f2
Refactoring: rename and simplify pkg/tool functions
2017-04-06 17:13:53 -04:00
Unknwon
6fbb984ebf
Refactoring: rename pkg/base -> pkg/tool
2017-04-05 09:05:40 -04:00
Unknwon
d05395fe90
Refactoring: rename modules -> pkg
...
Reasons to change:
1. Shorter than 'modules'
2. More generally used by other Go projects
3. Corresponds to the naming of '$GOPATH/pkg' directory
2017-04-04 19:29:59 -04:00
Unknwon
4a67bb5806
migrations.v17: skip if table not exist
2017-03-30 11:37:27 -04:00
Kyle McCullough
09723ec0e5
migration.v17: handle mysql error ( #4361 )
2017-03-29 19:02:07 -04:00
Unknwon
abe7f7bc36
migration.v17: add nil error check
2017-03-28 16:38:16 -04:00
Unknwon
717bcc4ad8
migration/v17: skip if protect_branch_whitelist table not exist ( #4355 )
2017-03-28 11:20:58 -04:00
Unknwon
1038916460
models/protect_branch: fix whitelist with invalid 'protect_branch_id' ( #4333 )
...
If user creates a protect branch for the first time (which has ID=0),
it generates invalid whitelist records with 'protect_branch_id=0'.
This prevents future updates of protect branch whitelist.
Migration: remove existing invalid protect branch whitelist records.
2017-03-27 13:13:04 -04:00
Unknwon
b116dc506b
migrations/v16: use continue not return for bad records
2017-03-12 03:34:19 -04:00
Unknwon
bf58f26305
migrations/v16: make SQLite3 work
2017-03-12 03:30:53 -04:00
Unknwon
601f174ea0
migrations/v16: only Warn if repository happens to have bad data
2017-03-12 03:08:25 -04:00
Unknwon
a34c21cde3
migrations/v16: sync table
2017-03-12 03:05:41 -04:00
Unknwon
bb19bb601e
repo: able to view size ( #1158 )
2017-03-12 01:59:48 -05:00
Unknwon
ca2cfaf71e
cmd: able to backup and restore
...
Not very robust, must execute under correct workdir.
Addresses #2072 , #3708 , #648
2017-02-27 22:48:19 -05:00
Unknwon
c4fdc26fa5
migration: drop 0.6.x support
2017-02-19 14:42:06 -05:00
Unknwon
a4f9e5031f
migration.v15: don't generate hook file if wiki not exist ( #1623 )
2017-02-15 05:45:15 -05:00
Unknwon
fd5881fb64
migration: minor code fix ( #1623 )
2017-02-15 05:28:05 -05:00
Unknwon
0f6e464126
migration: should regenerate wiki hook files ( #1623 )
2017-02-15 05:25:51 -05:00
Unknwon
0f32aeec70
migration: adjust rule to prevent migrate wrong hook file
2017-02-14 16:50:16 -05:00
Unknwon
78145cd166
migration: handle edge case
2017-02-14 16:40:49 -05:00
Unknwon
904f0ebec3
migration: add trace log
2017-02-14 16:30:49 -05:00
Unknwon
039dc33367
git: delegate all server-side Git hooks ( #1623 )
2017-02-14 16:22:16 -05:00
dlob
5179063e71
Added mssql support. ( #3772 )
2017-02-13 20:50:00 -05:00
Unknwon
eb66060cd7
log: start using gopkg.in/clog.v1
2017-02-09 19:29:59 -05:00
leonklingele
d96f2a7184
Fix random string generator ( #3953 )
...
* Remove unused custom-alphabet feature of random string generator
* Fix modulo-biased random string generator
* Random string generator should return error if it fails to read random data via crypto/rand
2016-12-21 03:41:37 -05:00
Unknwon
c2afdf2192
Minor code fix [CI SKIP]
2016-08-31 04:31:53 -07:00
Unknwon
37305a59ca
migrations: sync table first
2016-08-26 17:32:41 -07:00
Unknwon
bb359a74f1
migrations: set comment updated as created
2016-08-26 14:07:21 -07:00
Unknwon
250be011c7
Remove redundant Unix timestamp method call
...
Unix() already uses UTC as timezone
2016-07-23 20:24:44 +08:00
Unknwon
52322ef624
models/user_mail: refactor EmailAddress
2016-07-16 10:08:04 +08:00
Unknwon
401bf944ef
Use SecurityProtocol to replace UseSSL in LDAP config
...
Initially proposed by #2376 and fixes #3068 as well.
2016-07-08 07:25:09 +08:00
Unknwon
ad513a20e9
#2302 Replace time.Time with Unix Timestamp (int64)
2016-03-09 19:53:30 -05:00
Unknwon
ac78bae7b5
Replace uuid module with original package
2016-02-20 18:13:12 -05:00
Unknwon
3362b3a44f
fix possible disclosure
2015-12-14 17:06:54 -05:00
Unknwon
7a3eccc709
Drop 0.5.x support
2015-12-10 19:52:06 -05:00
Unknwon
eb30cbab81
add unsupported migration prompt
2015-11-25 09:27:27 -05:00
Unknwon
b55499d039
go vet and fix #1890
2015-11-08 14:31:49 -05:00
Unknwon
67ced4aaca
safe check
2015-10-31 23:25:08 -04:00
Unknwon
cb100c7781
work #1705
2015-10-31 23:18:58 -04:00
Unknwon
fc7959d3bc
New/reopen PR checks if there is any unmerged and open PR
2015-10-18 19:30:39 -04:00