From b892f566e5daf19561c0aac84e48e0ce409c71a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80=20?= =?UTF-8?q?=D0=90=D0=BD=D0=B3=D0=B8=D0=BD?= Date: Mon, 22 Jan 2018 10:40:11 +0300 Subject: [PATCH] fix missing semicolon in Postgres script's files --- .../postgres/files/013_add_column_repo_visibility.sql | 4 ++-- .../ddl/postgres/files/014_add_column_repo_seq.sql | 3 ++- .../ddl/postgres/files/015_add_column_repo_active.sql | 4 ++-- .../ddl/postgres/files/016_add_column_user_synced.sql | 2 +- .../ddl/postgres/files/018_add_column_file_pid.sql | 9 +++++---- 5 files changed, 12 insertions(+), 10 deletions(-) diff --git a/store/datastore/ddl/postgres/files/013_add_column_repo_visibility.sql b/store/datastore/ddl/postgres/files/013_add_column_repo_visibility.sql index ed795dfc2..03b73f888 100644 --- a/store/datastore/ddl/postgres/files/013_add_column_repo_visibility.sql +++ b/store/datastore/ddl/postgres/files/013_add_column_repo_visibility.sql @@ -1,6 +1,6 @@ -- name: alter-table-add-repo-visibility -ALTER TABLE repos ADD COLUMN repo_visibility VARCHAR(50) +ALTER TABLE repos ADD COLUMN repo_visibility VARCHAR(50); -- name: update-table-set-repo-visibility @@ -8,4 +8,4 @@ UPDATE repos SET repo_visibility = (CASE WHEN repo_private = false THEN 'public' ELSE 'private' - END) + END); diff --git a/store/datastore/ddl/postgres/files/014_add_column_repo_seq.sql b/store/datastore/ddl/postgres/files/014_add_column_repo_seq.sql index a0be87dda..2c45f95b6 100644 --- a/store/datastore/ddl/postgres/files/014_add_column_repo_seq.sql +++ b/store/datastore/ddl/postgres/files/014_add_column_repo_seq.sql @@ -8,9 +8,10 @@ UPDATE repos SET repo_counter = ( SELECT max(build_number) FROM builds WHERE builds.build_repo_id = repos.repo_id -) +); -- name: update-table-set-repo-seq-default UPDATE repos SET repo_counter = 0 WHERE repo_counter IS NULL +; \ No newline at end of file diff --git a/store/datastore/ddl/postgres/files/015_add_column_repo_active.sql b/store/datastore/ddl/postgres/files/015_add_column_repo_active.sql index 4dca2dd1e..627ffda0c 100644 --- a/store/datastore/ddl/postgres/files/015_add_column_repo_active.sql +++ b/store/datastore/ddl/postgres/files/015_add_column_repo_active.sql @@ -1,7 +1,7 @@ -- name: alter-table-add-repo-active -ALTER TABLE repos ADD COLUMN repo_active BOOLEAN +ALTER TABLE repos ADD COLUMN repo_active BOOLEAN; -- name: update-table-set-repo-active -UPDATE repos SET repo_active = true +UPDATE repos SET repo_active = true; diff --git a/store/datastore/ddl/postgres/files/016_add_column_user_synced.sql b/store/datastore/ddl/postgres/files/016_add_column_user_synced.sql index 43db914e7..efe2d9bed 100644 --- a/store/datastore/ddl/postgres/files/016_add_column_user_synced.sql +++ b/store/datastore/ddl/postgres/files/016_add_column_user_synced.sql @@ -4,4 +4,4 @@ ALTER TABLE users ADD COLUMN user_synced INTEGER; -- name: update-table-set-user-synced -UPDATE users SET user_synced = 0 +UPDATE users SET user_synced = 0; diff --git a/store/datastore/ddl/postgres/files/018_add_column_file_pid.sql b/store/datastore/ddl/postgres/files/018_add_column_file_pid.sql index 0ad11ac78..a8ee163c1 100644 --- a/store/datastore/ddl/postgres/files/018_add_column_file_pid.sql +++ b/store/datastore/ddl/postgres/files/018_add_column_file_pid.sql @@ -1,18 +1,18 @@ -- name: alter-table-add-file-pid -ALTER TABLE files ADD COLUMN file_pid INTEGER +ALTER TABLE files ADD COLUMN file_pid INTEGER; -- name: alter-table-add-file-meta-passed -ALTER TABLE files ADD COLUMN file_meta_passed INTEGER +ALTER TABLE files ADD COLUMN file_meta_passed INTEGER; -- name: alter-table-add-file-meta-failed -ALTER TABLE files ADD COLUMN file_meta_failed INTEGER +ALTER TABLE files ADD COLUMN file_meta_failed INTEGER; -- name: alter-table-add-file-meta-skipped -ALTER TABLE files ADD COLUMN file_meta_skipped INTEGER +ALTER TABLE files ADD COLUMN file_meta_skipped INTEGER; -- name: alter-table-update-file-meta @@ -20,3 +20,4 @@ UPDATE files SET file_meta_passed=0 ,file_meta_failed=0 ,file_meta_skipped=0 +; \ No newline at end of file