Yes, drop the constraint first: http://www.h2database.com/html/grammar.html?highlight=constraint&search=constraint#alter_table_drop_constraint
On Wed, Jan 20, 2010 at 11:04 AM, johnstok <[email protected]> wrote: > I'm trying to issue the following SQL: > > ALTER TABLE user_roles DROP PRIMARY KEY; > > However, the database returns an error: > > Index PRIMARY_KEY_87 belongs to a constraint [90085-103] 90085/90085 > > Any ideas what I'm doing wrong? > > -- > You received this message because you are subscribed to the Google Groups "H2 > Database" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/h2-database?hl=en. > > > > -- See for yourself how easy it is to manage files today. Join the revolution! Razuna SaaS On-Demand - Hosted Digital Asset Management Solution http://www.razuna.com/ Razuna - Open Source Digital Asset Management http://www.razuna.org/ Follow us on Twitter http://twitter.com/razunahq
-- You received this message because you are subscribed to the Google Groups "H2 Database" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/h2-database?hl=en.
