Low prio change request: Add support for ALTER TABLE .. RENAME COLUMN .. TO ..

47 views
Skip to first unread message

Lukas Eder

unread,
Feb 14, 2016, 12:08:40 PM2/14/16
to H2 Database
Hello,

This would be nice to have, low prio.

Add support for alternative DDL syntaxes in order to improve database interoperability. E.g. support PostgreSQL's simpler column renaming syntax (http://www.postgresql.org/docs/9.5/static/sql-altertable.html)

ALTER TABLE distributors RENAME COLUMN address TO city;


ALTER TABLE TEST ALTER COLUMN NAME RENAME TO TEXT;

The same applies for renaming constraints...

Cheers,
Lukas

Lukas Eder

unread,
Feb 14, 2016, 12:30:42 PM2/14/16
to h2-da...@googlegroups.com
Hmm, in fact, I've just noticed that according to the documentation, there is no way to rename a constraint... Would be good to have that option as well...

--
You received this message because you are subscribed to a topic in the Google Groups "H2 Database" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/h2-database/8zt8k8hU1jA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to h2-database...@googlegroups.com.
To post to this group, send email to h2-da...@googlegroups.com.
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Noel Grandin

unread,
Feb 17, 2016, 4:21:26 AM2/17/16
to h2-da...@googlegroups.com
Added support for these 2 things

Lukas Eder

unread,
Feb 17, 2016, 8:11:09 AM2/17/16
to h2-da...@googlegroups.com
Thank you very much!

2016-02-17 10:21 GMT+01:00 Noel Grandin <noelg...@gmail.com>:
Added support for these 2 things
Reply all
Reply to author
Forward
0 new messages