From 6806883a0dae8e27da251b5a9d141ce94b7f1787 Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Wed, 12 Jul 2017 15:22:49 -0400 Subject: [PATCH] fix mysql migration value --- store/datastore/ddl/mysql/ddl_gen.go | 2 +- .../ddl/mysql/files/013_add_column_repo_visibility.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/store/datastore/ddl/mysql/ddl_gen.go b/store/datastore/ddl/mysql/ddl_gen.go index 14f5b85a..1b45794b 100644 --- a/store/datastore/ddl/mysql/ddl_gen.go +++ b/store/datastore/ddl/mysql/ddl_gen.go @@ -474,7 +474,7 @@ ALTER TABLE repos ADD COLUMN repo_visibility VARCHAR(50) var updateTableSetRepoVisibility = ` UPDATE repos SET repo_visibility = CASE - WHEN repo_private = 0 THEN 'public' + WHEN repo_private = true THEN 'public' ELSE 'private' END ` diff --git a/store/datastore/ddl/mysql/files/013_add_column_repo_visibility.sql b/store/datastore/ddl/mysql/files/013_add_column_repo_visibility.sql index 937294b4..46d4767a 100644 --- a/store/datastore/ddl/mysql/files/013_add_column_repo_visibility.sql +++ b/store/datastore/ddl/mysql/files/013_add_column_repo_visibility.sql @@ -6,6 +6,6 @@ ALTER TABLE repos ADD COLUMN repo_visibility VARCHAR(50) UPDATE repos SET repo_visibility = CASE - WHEN repo_private = 0 THEN 'public' + WHEN repo_private = true THEN 'public' ELSE 'private' END