You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@roller.apache.org by Rudman Max <mr...@steelbrick.com> on 2005/09/14 04:48:53 UTC
Oracle patch
We have Roller 1.x running against Oracle 10g database. Migration was
pretty painless as I recall except these major issues:
1) Manual query in the RefererManager had to be reworked (or more
precisely an 'if' for Oracle created)
2) Some constraint names were too long
3) 'comment' table name conflicted with an Oracle keyword.
Let me know if the project has interest in Oracle support and what
the process is for submitting these kinds of patches.
Max
Re: Oracle patch
Posted by Elias Torres <el...@torrez.us>.
Rudman,
I have just finished submitting patches to add Derby and DB2 support.
I suggest you start working off the Roller_2.0 branch in SVN instead
of 1.x. I have already made fixes to shorten all of the
constraint/index names to less or equal to 18 characters. You can see
my patches [1] and do the same. Email them here, then Dave will review
and merge them into the branch. If you need to change the table name,
I'd advise to also add to the migration script SQL to create the new
table, move the data and drop the old table for other databases. Make
sure that you add to the build.xml to generate the oracle folder and
defaults (commented out) for the hibernate.cfg.xml and I think there's
one other file as well. That's all I can think of right now.
Regards,
Elias
[1] http://torrez.us/2005/08/23/roller/patches/
Question to team: I'm being lazy right now and don't remember what's
the difference between the UpgradeDatabase code and the migration
scripts. Is it duplicate work? or does UpgradeDatabase uses the
migration scripts?
On 9/14/05, Rudman Max <mr...@steelbrick.com> wrote:
> 2.0 really would be a great time -- especially that it requires
> 'comment' table to be renamed. Let me know what to do...
>
> Max
>
> On Sep 13, 2005, at 10:42 PM, Allen Gilliland wrote:
>
> > yes! we want it!
> >
> > with 2.0 coming up this would be a great time to hammer out Oracle
> > support. this would also align nicely with some of the db changes
> > that Elias has been working on to get Derby and DB2 supported.
> >
> > i'm not sure what the best submission method is though ... Dave?
> >
> > -- Allen
> >
> >
> > Rudman Max wrote:
> >
> >
> >> We have Roller 1.x running against Oracle 10g database. Migration
> >> was pretty painless as I recall except these major issues:
> >>
> >> 1) Manual query in the RefererManager had to be reworked (or more
> >> precisely an 'if' for Oracle created)
> >> 2) Some constraint names were too long
> >> 3) 'comment' table name conflicted with an Oracle keyword.
> >>
> >> Let me know if the project has interest in Oracle support and
> >> what the process is for submitting these kinds of patches.
> >>
> >> Max
> >
>
>
Re: Oracle patch
Posted by Rudman Max <mr...@steelbrick.com>.
2.0 really would be a great time -- especially that it requires
'comment' table to be renamed. Let me know what to do...
Max
On Sep 13, 2005, at 10:42 PM, Allen Gilliland wrote:
> yes! we want it!
>
> with 2.0 coming up this would be a great time to hammer out Oracle
> support. this would also align nicely with some of the db changes
> that Elias has been working on to get Derby and DB2 supported.
>
> i'm not sure what the best submission method is though ... Dave?
>
> -- Allen
>
>
> Rudman Max wrote:
>
>
>> We have Roller 1.x running against Oracle 10g database. Migration
>> was pretty painless as I recall except these major issues:
>>
>> 1) Manual query in the RefererManager had to be reworked (or more
>> precisely an 'if' for Oracle created)
>> 2) Some constraint names were too long
>> 3) 'comment' table name conflicted with an Oracle keyword.
>>
>> Let me know if the project has interest in Oracle support and
>> what the process is for submitting these kinds of patches.
>>
>> Max
>
Re: Oracle patch
Posted by Allen Gilliland <Al...@Sun.COM>.
yes! we want it!
with 2.0 coming up this would be a great time to hammer out Oracle
support. this would also align nicely with some of the db changes that
Elias has been working on to get Derby and DB2 supported.
i'm not sure what the best submission method is though ... Dave?
-- Allen
Rudman Max wrote:
> We have Roller 1.x running against Oracle 10g database. Migration was
> pretty painless as I recall except these major issues:
>
> 1) Manual query in the RefererManager had to be reworked (or more
> precisely an 'if' for Oracle created)
> 2) Some constraint names were too long
> 3) 'comment' table name conflicted with an Oracle keyword.
>
> Let me know if the project has interest in Oracle support and what
> the process is for submitting these kinds of patches.
>
> Max
Re: Oracle patch
Posted by Dave Johnson <da...@rollerweblogger.org>.
You should use a process like this:
* Get the latest code from the branch you wish to work in (I'd
recommend 2.0)
* Make your changes to the code. If you are making schema changes,
please provide both a new createdb script and a new migration script.
You can see some examples of table renames in the 097-to-098 migration
script.
* Use diff or your IDE to create a patch file, send it to the dev list
and we'll try it out.
- Dave
On Sep 13, 2005, at 10:48 PM, Rudman Max wrote:
> We have Roller 1.x running against Oracle 10g database. Migration was
> pretty painless as I recall except these major issues:
>
> 1) Manual query in the RefererManager had to be reworked (or more
> precisely an 'if' for Oracle created)
> 2) Some constraint names were too long
> 3) 'comment' table name conflicted with an Oracle keyword.
>
> Let me know if the project has interest in Oracle support and what the
> process is for submitting these kinds of patches.
>
> Max
>