Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hRKeh-0003pf-DP for pgsql-general@arkaria.postgresql.org; Thu, 16 May 2019 17:58:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hRKeg-0007B8-31 for pgsql-general@arkaria.postgresql.org; Thu, 16 May 2019 17:58:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hRKef-0007B1-Pk for pgsql-general@lists.postgresql.org; Thu, 16 May 2019 17:58:57 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hRKed-0004HD-Lb for pgsql-general@postgresql.org; Thu, 16 May 2019 17:58:57 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 6C0FC390; Thu, 16 May 2019 13:58:53 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 16 May 2019 13:58:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=M tOMrs9NvOPvu1DPIMwzpbzRvBOUXqxZVn0dqOp10OY=; b=HS+fSocqyP8d1Q7tY NTBJOp7nFDFnKgZ7sW5aC+MDC3kwk169k4AtBegiP34qhEXxa5TVg56tIb+WXGMe 0eTl0JxN1aO4Je+X2BolqMmcMiNd8MClW6CTHON9PlLIay9T0TW3qtpBb60T64zC lqIMU2TbXXLmlgxqorLM61yC4vLrcDE/fvmuNH/Qr0h0ZS++yyM2zA5w3EfKUF4g Ay4PP+e7HhrXl8JAVP1X+TZfnGjOT1sRrxh1rcBXVEgS0Ox8aIYDVTh265JBLGv+ pff7zWDd6O1vmkV3iUlzZHAMe7l/ANYAKbEXHIT4XJc6MLHiAN1FbtPjoGkkIvkf OzG+A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=MtOMrs9NvOPvu1DPIMwzpbzRvBOUXqxZVn0dqOp10 OY=; b=Qva1UQLr6gwh3itEfsr+Zz3AfXmSF1IlRPoXE88/UTmVt5gXYZe9vw1GP edbvp4zDYOa126R7qwhJglMD0Ot6J+qO8WqF3yxfx9UOJtB9z/CPICwbuKsSh1rq WSx3FdcKRAS3LSPfGMrRaQE23OkSyL8rfDq08fnQlrhIXT3Bne+ZFKKAAWVVlhW7 EnyfCbznzSJsxlopGI8N6YjT71cYFR8X1Hzoo6mVbxyDNkSB6/1QHlT+rPqT4JNI 56ZMr0/0Mr7bMwHi/vtdn5RRY0ksTK8y7G910GR5lQFTRcnaODjCZRcaeNDnZ4K9 4pjMRvftnFMcuP5fHfA1Gahj+GcKg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddruddttddgudduiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefuvfhfhffkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecukfhppeejgedrleegrdejfedrvddvvdenucfrrghrrghmpehmrghilhhfrhho mheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhenucevlhhushhtvg hrufhiiigvpedu X-ME-Proxy: Received: from ranger.suse (unknown [74.94.73.222]) by mail.messagingengine.com (Postfix) with ESMTPA id C9EE980062; Thu, 16 May 2019 13:58:51 -0400 (EDT) Subject: Re: schema change tracking To: Benedict Holland , Mark Fletcher Cc: pgsql-general References: From: Adrian Klaver Message-ID: <7d976b63-674f-5901-6f02-e9571751e502@aklaver.com> Date: Thu, 16 May 2019 10:58:51 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 5/16/19 10:55 AM, Benedict Holland wrote: > Hi All! > > Thanks for the replies. I am looking for a solution, possibly 3rd party, > where I write changes to the schema and it keeps track of the changes I > made. I am used to doing stuff in pgadmin4 but I don't mind something else. > > This isn't really ad-hoc. This is more like, I have a v1.0 release > coming out soon and I have made dozens or hundreds of changes to the > schema from the alpha. Right now, I can destroy the databases and > recreate them without data loss because it is in active development. > When this gets released, we need some way to make sure that we can > easily migrate between release versions and that means schema change > tracking. Basically, to Steve's concern, I don't have to go back and > figure out changes (thankfully, I have done that and it sucks) but we > need something from an initial release moving forward. > > I don't have time to write my own and this problem is complex enough to > either buy a solution or go with a 3rd party application. > > So far, SQITCH is looking like a winner. Yoyo can work as I have access > to python. We are not using SQLAlchemy but I don't see a reason why we > can't. I will second the motion on Sqitch. It has met all my needs and is framework agnostic. > > Thanks all for the suggestions. This is great. > ~Ben > > -- Adrian Klaver adrian.klaver@aklaver.com