mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 20:01:02 +00:00
Merge pull request #631 from bradrydzewski/master
altered mysql to use `mediumblob` instead of `blob` to avoid 64k limit
This commit is contained in:
commit
275fb9600c
1 changed files with 1 additions and 0 deletions
|
@ -13,6 +13,7 @@ func transform(stmt string) string {
|
|||
switch meddler.Default {
|
||||
case meddler.MySQL:
|
||||
stmt = strings.Replace(stmt, "AUTOINCREMENT", "AUTO_INCREMENT", -1)
|
||||
stmt = strings.Replace(stmt, "BLOB", "MEDIUMBLOB", -1)
|
||||
case meddler.PostgreSQL:
|
||||
stmt = strings.Replace(stmt, "INTEGER PRIMARY KEY AUTOINCREMENT", "SERIAL PRIMARY KEY", -1)
|
||||
stmt = strings.Replace(stmt, "BLOB", "BYTEA", -1)
|
||||
|
|
Loading…
Reference in a new issue