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 B401026A63 for ; Fri, 25 Jan 2019 06:12:28 -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 plji3_n-x33p for ; Fri, 25 Jan 2019 06:12:28 -0500 (EST) Received: from smtp40.i.mail.ru (smtp40.i.mail.ru [94.100.177.100]) (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 6576F26A62 for ; Fri, 25 Jan 2019 06:12:28 -0500 (EST) From: Kirill Shcherbatov Subject: [tarantool-patches] [PATCH v1 1/2] box: fix upgrade script for _fk_constraint space Date: Fri, 25 Jan 2019 14:12:24 +0300 Message-Id: <9ddda42cee32924609b5a00707bb38da77714fe6.1548414536.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