grails - hbase - how to change tables structure without drop tables -
I use grails-1.3.2 and plugin.
Sometimes I need to change the table structure new tables or columns). I have created a car table:
class car {static belongsTo = [user: user] string color string model // ..... static barriers = {}} But when I want to create a car object:
def create = {car car = new car () car. Properties = Parameter car.save (flush: true)} I got the following exception:
error garm Save Percentage Method - APP_CAR org.apache.hadoop.hbase.TableNotFoundException: APP_CAR After running the application with add-drop, the alithing starts to work well. But every change I make After all the data can not be deleted, I thought that the plugin has to update all
then, I see
If anyone knows, then solutions please help.
Grails will not automatically update for automatic tables, what if it is automatically in production Column drop? It's probably not what you wanted.
There is a database migration plugin to do this and it is an excellent that tells this. Note that instead of using people directly in the link, you need to use the prod grails, otherwise it will run only in development mode. There are official links and it is about spring source blog.
Comments
Post a Comment