mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-04-15 01:41:56 +00:00
update varchar to 255 for the unique value to work for the migrations table.
This commit is contained in:
@@ -99,7 +99,7 @@ INSERT IGNORE INTO migrations (name) VALUES
|
||||
|
||||
var createMigrationsTable = `
|
||||
CREATE TABLE IF NOT EXISTS migrations (
|
||||
name VARCHAR(512)
|
||||
name VARCHAR(255)
|
||||
,UNIQUE(name)
|
||||
)
|
||||
`
|
||||
|
||||
@@ -150,7 +150,7 @@ func selectCompleted(db *sql.DB) (map[string]struct{}, error) {
|
||||
|
||||
var migrationTableCreate = `
|
||||
CREATE TABLE IF NOT EXISTS migrations (
|
||||
name VARCHAR(512)
|
||||
name VARCHAR(255)
|
||||
,UNIQUE(name)
|
||||
)
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user