Subject | Re: [firebird-support] Firebird database comparison tool. |
---|---|
Author | Thomas Clarke |
Post date | 2011-10-18T11:30:33Z |
On Tue, Oct 18, 2011 at 6:21 AM, Milan Babuskov <milanb@...> wrote:
versions of the database structure and then create change scripts and use
these for the updates. I will read your article a bit later today.
Regards.
Thomas Clarke.
Thomas Clarke
Cyber Sea Incorporated
#6 Kingston Terrace
Flint Hall
St. Michael
Barbados BB11070
voice: (246) 234-9692
email: tclarke@...
web: http://cybersea.biz
[Non-text portions of this message have been removed]
> **Thanks Milan, I have reached the same conclusion and that is to work with
>
>
> Thomas Clarke wrote:
> > It is broken down into two major parts, i)
> > update the exe file based on version numbers and ii) update the Firebird
> > database structure.
>
> You could also version your database and make the upgrade simple.
> Database changes are often not just about metadata, but also data
> transformations and there is no way to do that in ad-hoc manner.
> Consider for example changing from timestamp column to store the same
> data into varchar(50) column with added timezone string. This requires
> something like:
>
> UPDATE mytable SET newcolumn = oldcolumn || ' default timezone';
>
> Only way to apply such change to production database is to log it as
> such. No database structure comparison tool would be able to handle this.
>
>
> > Any ideas as to the best way to go about this?
>
> Log all your database changes and apply them in production. Some tools
> like IBExpert and FlameRobin have options to do this automatically for you.
>
> See this paper for example implementation (demo source code included):
>
>
> http://heanet.dl.sourceforge.net/sourceforge/fbexport/managing_metadata_fixed.zip
>
> --
> Milan Babuskov
>
>
versions of the database structure and then create change scripts and use
these for the updates. I will read your article a bit later today.
Regards.
Thomas Clarke.
> ==================================--
> The easiest way to import XML, CSV
> and textual files into Firebird:
> http://www.guacosoft.com/xmlwizard
> ==================================
>
>
>
Thomas Clarke
Cyber Sea Incorporated
#6 Kingston Terrace
Flint Hall
St. Michael
Barbados BB11070
voice: (246) 234-9692
email: tclarke@...
web: http://cybersea.biz
[Non-text portions of this message have been removed]