mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-25 01:40:30 +00:00
sql: remove IF NOT EXISTS from mysql migrations
This commit is contained in:
parent
23e2faf4f4
commit
ffa2377aed
1 changed files with 3 additions and 3 deletions
|
@ -72,7 +72,7 @@ CREATE TABLE IF NOT EXISTS builds (
|
||||||
,UNIQUE(build_number, build_repo_id)
|
,UNIQUE(build_number, build_repo_id)
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE INDEX IF NOT EXISTS ix_build_repo ON builds (build_repo_id);
|
CREATE INDEX ix_build_repo ON builds (build_repo_id);
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS jobs (
|
CREATE TABLE IF NOT EXISTS jobs (
|
||||||
job_id INTEGER PRIMARY KEY AUTO_INCREMENT
|
job_id INTEGER PRIMARY KEY AUTO_INCREMENT
|
||||||
|
@ -89,8 +89,8 @@ CREATE TABLE IF NOT EXISTS jobs (
|
||||||
,UNIQUE(job_build_id, job_number)
|
,UNIQUE(job_build_id, job_number)
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE INDEX IF NOT EXISTS ix_job_build ON jobs (job_build_id);
|
CREATE INDEX ix_job_build ON jobs (job_build_id);
|
||||||
CREATE INDEX IF NOT EXISTS ix_job_node ON jobs (job_node_id);
|
CREATE INDEX ix_job_node ON jobs (job_node_id);
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS logs (
|
CREATE TABLE IF NOT EXISTS logs (
|
||||||
log_id INTEGER PRIMARY KEY AUTO_INCREMENT
|
log_id INTEGER PRIMARY KEY AUTO_INCREMENT
|
||||||
|
|
Loading…
Reference in a new issue