script to generate the schema update sql

View: New views
5 Messages — Rating Filter:   Alert me  

script to generate the schema update sql

by Alapati, Shyam Kishore :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

In our project we came across a scenario where we need to generate the schema update scripts for every release. So I wrote a script which generates the schema update sql’s. I just wanted to share it with the community.

 

Thanks

Shyam



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

SchemaUpdate.groovy (5K) Download Attachment

Re: script to generate the schema update sql

by burtbeckwith :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I did something similar, so I was curious to see where your approach was
different from mine. I blogged about it at http://burtbeckwith.com/blob/?p=59 
and submitted my script as a Jira at
http://jira.codehaus.org/browse/GRAILS-2760 (this script has been added on
the 1.1 branch).

So imagine my surprise when I saw that you just took my script, renamed it
from SchemaExport.groovy to SchemaUpdate.groovy, changed the @author tag from
my name to yours, and removed the export option leaving only the update
option.

I don't mind that you're using my code - I donated it both by blogging it and
with the Jira submission, but this is a shameless theft - "I wrote a script"?
Hah.

Burt

On Thursday 08 May 2008 10:45:40 am Alapati, Shyam Kishore wrote:

> In our project we came across a scenario where we need to generate the
> schema update scripts for every release. So I wrote a script which
> generates the schema update sql's. I just wanted to share it with the
> community.
>
>
>
> Thanks
>
> Shyam



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: script to generate the schema update sql

by burtbeckwith :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry, make that http://burtbeckwith.com/blog/?p=59 :)

Burt

On Thursday 08 May 2008 11:06:43 am Burt Beckwith wrote:

> I did something similar, so I was curious to see where your approach was
> different from mine. I blogged about it at
> http://burtbeckwith.com/blob/?p=59 and submitted my script as a Jira at
> http://jira.codehaus.org/browse/GRAILS-2760 (this script has been added on
> the 1.1 branch).
>
> So imagine my surprise when I saw that you just took my script, renamed it
> from SchemaExport.groovy to SchemaUpdate.groovy, changed the @author tag
> from my name to yours, and removed the export option leaving only the
> update option.
>
> I don't mind that you're using my code - I donated it both by blogging it
> and with the Jira submission, but this is a shameless theft - "I wrote a
> script"? Hah.
>
> Burt
>
> On Thursday 08 May 2008 10:45:40 am Alapati, Shyam Kishore wrote:
> > In our project we came across a scenario where we need to generate the
> > schema update scripts for every release. So I wrote a script which
> > generates the schema update sql's. I just wanted to share it with the
> > community.
> >
> >
> >
> > Thanks
> >
> > Shyam
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Parent Message unknown RE: script to generate the schema update sql

by Alapati, Shyam Kishore :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry for that. I should have mentioned that. This is my first post and I
should have been careful about my words. I did use your code and updated it
to do the schemaupdate. Your code is doing only the schema export so I
updated the code to do the schema update. I thought of sharing it and it may
be useful for others. Sorry if have offended you Burt Beckwith

-----Original Message-----
From: Burt Beckwith [mailto:burt@...]
Sent: Thursday, May 08, 2008 10:08 AM
To: dev@...
Subject: Re: [grails-dev] script to generate the schema update sql

Sorry, make that http://burtbeckwith.com/blog/?p=59 :)

Burt

On Thursday 08 May 2008 11:06:43 am Burt Beckwith wrote:

> I did something similar, so I was curious to see where your approach was
> different from mine. I blogged about it at
> http://burtbeckwith.com/blob/?p=59 and submitted my script as a Jira at
> http://jira.codehaus.org/browse/GRAILS-2760 (this script has been added on
> the 1.1 branch).
>
> So imagine my surprise when I saw that you just took my script, renamed it
> from SchemaExport.groovy to SchemaUpdate.groovy, changed the @author tag
> from my name to yours, and removed the export option leaving only the
> update option.
>
> I don't mind that you're using my code - I donated it both by blogging it
> and with the Jira submission, but this is a shameless theft - "I wrote a
> script"? Hah.
>
> Burt
>
> On Thursday 08 May 2008 10:45:40 am Alapati, Shyam Kishore wrote:
> > In our project we came across a scenario where we need to generate the
> > schema update scripts for every release. So I wrote a script which
> > generates the schema update sql's. I just wanted to share it with the
> > community.
> >
> >
> >
> > Thanks
> >
> > Shyam
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: script to generate the schema update sql

by lhazlewood :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

For future reference Shyam, it is always considered good etiquette to
leave any @author tags there, and add another one with your name and
indicate any changes you did in addition to the original.

I've done this on a few minor occasions with JSecurity, but always
give credit where it is due.  Here's an example:
http://www.jsecurity.org/api/org/jsecurity/codec/Base64.html

Most of us don't get paid to do open source and do it for purely
altruistic reasons, so asking to retain names is not much of a
request.  Its just fair. :)

Cheers,

Les

On Thu, May 8, 2008 at 11:34 AM, Alapati, Shyam Kishore
<shyam.alapati@...> wrote:

> Sorry for that. I should have mentioned that. This is my first post and I
>  should have been careful about my words. I did use your code and updated it
>  to do the schemaupdate. Your code is doing only the schema export so I
>  updated the code to do the schema update. I thought of sharing it and it may
>  be useful for others. Sorry if have offended you Burt Beckwith
>
>
>
>  -----Original Message-----
>  From: Burt Beckwith [mailto:burt@...]
>  Sent: Thursday, May 08, 2008 10:08 AM
>  To: dev@...
>  Subject: Re: [grails-dev] script to generate the schema update sql
>
>  Sorry, make that http://burtbeckwith.com/blog/?p=59 :)
>
>  Burt
>
>  On Thursday 08 May 2008 11:06:43 am Burt Beckwith wrote:
>  > I did something similar, so I was curious to see where your approach was
>  > different from mine. I blogged about it at
>  > http://burtbeckwith.com/blob/?p=59 and submitted my script as a Jira at
>  > http://jira.codehaus.org/browse/GRAILS-2760 (this script has been added on
>  > the 1.1 branch).
>  >
>  > So imagine my surprise when I saw that you just took my script, renamed it
>  > from SchemaExport.groovy to SchemaUpdate.groovy, changed the @author tag
>  > from my name to yours, and removed the export option leaving only the
>  > update option.
>  >
>  > I don't mind that you're using my code - I donated it both by blogging it
>  > and with the Jira submission, but this is a shameless theft - "I wrote a
>  > script"? Hah.
>  >
>  > Burt
>  >
>  > On Thursday 08 May 2008 10:45:40 am Alapati, Shyam Kishore wrote:
>  > > In our project we came across a scenario where we need to generate the
>  > > schema update scripts for every release. So I wrote a script which
>  > > generates the schema update sql's. I just wanted to share it with the
>  > > community.
>  > >
>  > >
>  > >
>  > > Thanks
>  > >
>  > > Shyam
>  >
>  > ---------------------------------------------------------------------
>  > To unsubscribe from this list, please visit:
>  >
>  >     http://xircles.codehaus.org/manage_email
>
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email