From https://github.com/influxdb/influxdb/issues/828#issuecomment-83224779
e.g. RENAME DATABASE foo TO bar
Would also need to update all relevant CQs.
From discussion on https://github.com/influxdb/influxdb/pull/4291, will use this syntax:
ALTER DATABASE name RENAME TO new_name
Looks like this is now merged. Closing.
Jack, I believe the merge was reverted. @otoolep what's the status of ALTER DATABASE?
I believe we decided that we may add an alias method, but likely not an alter or rename.
The feature was reverted, a person in the community may submit a new patch at a later date, but no work planned by us right now.
Sorry about that! Thanks for the catch @beckettsean
Is there a workaround for this? Such as:
I guess it will not work, as it looks like meta/meta.db contains some references to my database?
@hpbieker do you find some command for rename a database?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Still interested in this.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Still interested in this.
Yeah, would love and need this feature for db migrations we do quite often.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Still interested in this.
I'm also interested in this
I am also interested in this feature. Rename comes in handy for migration
Most helpful comment
I'm also interested in this