From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 5F51E26229 for ; Wed, 30 Jan 2019 03:59:20 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zv2Uea1k7IkK for ; Wed, 30 Jan 2019 03:59:20 -0500 (EST) Received: from smtp54.i.mail.ru (smtp54.i.mail.ru [217.69.128.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id D78D42619E for ; Wed, 30 Jan 2019 03:59:19 -0500 (EST) From: Kirill Shcherbatov Subject: [tarantool-patches] [PATCH v2 1/9] box: fix upgrade script for _fk_constraint space Date: Wed, 30 Jan 2019 11:59:08 +0300 Message-Id: <87984ddaed8565938269bab296e8a162c18e3bb0.1548838034.git.kshcherbatov@tarantool.org> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-subscribe: List-owner: List-post: List-archive: To: tarantool-patches@freelists.org, korablev@tarantool.org Cc: Kirill Shcherbatov The set_system_triggers and erase routines in upgrade.lua did not proceed actions for _fk_constraint space. --- src/box/lua/upgrade.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/box/lua/upgrade.lua b/src/box/lua/upgrade.lua index 3d9acc976..81f578e58 100644 --- a/src/box/lua/upgrade.lua +++ b/src/box/lua/upgrade.lua @@ -71,6 +71,7 @@ local function set_system_triggers(val) box.space._priv:run_triggers(val) box.space._trigger:run_triggers(val) box.space._collation:run_triggers(val) + box.space._fk_constraint:run_triggers(val) end -------------------------------------------------------------------------------- @@ -88,6 +89,7 @@ local function erase() truncate(box.space._truncate) truncate(box.space._collation) truncate(box.space._trigger) + truncate(box.space._fk_constraint) --truncate(box.space._schema) box.space._schema:delete('version') box.space._schema:delete('max_id') -- 2.19.2