Skip to content

Commit f630d72

Browse files
committed
Fixed the log where errors were occurring from SQL.(#59065)
1 parent 97fd4ae commit f630d72

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

scripts/demo/fix_lang_code_column.sql

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
RAISE NOTICE 'Update admin_lang_settings';
1+
22
--VARCHAR型カラムの文字数を変更する
33
ALTER TABLE admin_lang_settings ALTER COLUMN lang_code TYPE character varying(10);
44

55
--「zh」、「zh-cn」を「zh-Hans」に変更する
66
UPDATE admin_lang_settings SET lang_code = 'zh_Hans', lang_name = '中文 (簡体)' WHERE lang_code = 'zh' OR lang_code = 'zh-cn';
7-
-- Get number of rows updated
8-
GET DIAGNOSTICS updated_cnt = ROW_COUNT;
9-
RAISE NOTICE 'Updated % rows in admin_lang_settings from zh to zh_Hans', updated_cnt;
107

118
-- 「zh-tw」を「zh_Hant」に書き換える
129
UPDATE admin_lang_settings SET lang_code = 'zh_Hant', lang_name = '中文 (繁体)' WHERE lang_code = 'zh-tw';

scripts/demo/restricted_mail_template.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,4 +734,4 @@ WHERE EXCLUDED.id = 11;
734734
-- Name: mail_templates_id_seq; Type: SEQUENCE SET; Schema: public; Owner: invenio
735735
--
736736

737-
PERFORM pg_catalog.setval('mail_templates_id_seq', 15, true);
737+
SELECT pg_catalog.setval('mail_templates_id_seq', 15, true);

0 commit comments

Comments
 (0)