From f7d10474d10ef3bbe548cab11daa6c09ff6c42d3 Mon Sep 17 00:00:00 2001 From: chlins Date: Mon, 28 Mar 2022 15:15:14 +0800 Subject: [PATCH] migrations: correct project metadata public value Signed-off-by: chlins --- make/migrations/postgresql/0090_2.6.0_schema.up.sql | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 make/migrations/postgresql/0090_2.6.0_schema.up.sql diff --git a/make/migrations/postgresql/0090_2.6.0_schema.up.sql b/make/migrations/postgresql/0090_2.6.0_schema.up.sql new file mode 100644 index 000000000..f840de59d --- /dev/null +++ b/make/migrations/postgresql/0090_2.6.0_schema.up.sql @@ -0,0 +1,2 @@ +/* Correct project_metadata.public value, should only be true or false, other invaild value will be rewrite to false */ +UPDATE project_metadata SET value='false' WHERE name='public' AND value NOT IN('true', 'false'); \ No newline at end of file