Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ej6Ge-0004qu-A6 for pgsql-general@arkaria.postgresql.org; Tue, 06 Feb 2018 16:38:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ej6Gd-000222-7E for pgsql-general@arkaria.postgresql.org; Tue, 06 Feb 2018 16:38:47 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ej6Gc-00021s-DH for pgsql-general@lists.postgresql.org; Tue, 06 Feb 2018 16:38:47 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ej6GZ-00088R-2W for pgsql-general@postgresql.org; Tue, 06 Feb 2018 16:38:45 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id B9A8120505; Tue, 6 Feb 2018 11:38:41 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Tue, 06 Feb 2018 11:38:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=g3QWngYrC6Y8xi6S4EPZkCmBIMIYv 8IjjDUPSC+Du7o=; b=krZ+hLAl8CsrOokiOdh3C5EjEl69D+7mTL6zSqwStwcir givLYdN/Y0L3dxmcU/6m8l2QmvNY/a+KVEXmnJIQ4bEhesXW9I1SubJcvmceU4Vt b5CXcsJWyTPlEHwnP5i2WBTou5b+R3gf2f8lAzogTuOmYRusvW9PA/8f1/SHbcP7 heeFSznd2wCJ2G4PrVqaS2uIgO8YGmJiSb6uP640jIl5lXf+V3KWKYSoT40J87Mn sJbPc14pS9VAQztjruzBnQuZOrFYAB4knCy6w2/vS7O+f6/4JYY/qiS36EanKfIE 6RVrvTUBw9tsznVT4kwEObLJC21RzhDRHZwG6wNjQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=g3QWng YrC6Y8xi6S4EPZkCmBIMIYv8IjjDUPSC+Du7o=; b=knTi3l1VKvMAU2mfJ9u0uL WK1Ycqw0e/GNFFds2OFW4O1m5RfhJf1nQF8w6ty7Is9ni9kwGDkOhuqAjNY/DMu3 u5ZeDN7wEek4Iu7uCeP1Im+2TLbconE7wcWrZxOdxggyjontC5WBXbdHYNyejJun pAa2hW7eFuZrZoixC1tUdA9pwVvmNu2pZI3VXX3eSMS87Kgd31JEW8vNLcpNImNp wCecbEdFsJsJHUrdk/t+UAhHOYTkO/PjA1AzMBQSWSi3elnhAsw9ZMhsfVwmSxPF ewCBxkXjSn//sE726jJ6bg/mXkPWde44/n/w7CXIglPJ7AV/8RRoI75JlrzCxKHw == X-ME-Sender: Received: from ranger.suse (71-212-36-41.tukw.qwest.net [71.212.36.41]) by mail.messagingengine.com (Postfix) with ESMTPA id 30A7E24608; Tue, 6 Feb 2018 11:38:41 -0500 (EST) Subject: Re: Found non-empty schema without metadata table error while migrating To: Abhra Kar , pgsql-general References: From: Adrian Klaver Message-ID: <94c8d7c6-badd-5447-b73f-af837b9e1e53@aklaver.com> Date: Tue, 6 Feb 2018 08:38:40 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 02/05/2018 10:52 PM, Abhra Kar wrote: > Hi, > > Getting below error— > > > exec] Flyway (Command-line Tool) v.1.1 > > [exec] > > [exec] Metadata table created: schema_version > > [exec] Schema initialized with version: 0 > > [exec] Flyway (Command-line Tool) v.1.1 > > [exec] > > [exec] ValidationException: Found non-empty schema without metadata > table! Use init() first to initialise the metadata table. Did you do the above? The below seems to be a question for the Flyway folks. They don't seem to have a mailing list, they do point at a SO page: https://stackoverflow.com/questions/tagged/flyway > > > It stuck when going to execute below configuration in ant build.xml for > migrate db(populate tables into schema abc)— > > > > > > > > > > > > > > > > > > > > > failonerror="true"> > > > > > > > > > > > > > > > > > abc schema is created properly registered with abc user. > > > didn’t solve the problem > > > What need to be change here. > > > Thanks > > > -- Adrian Klaver adrian.klaver@aklaver.com