Can we add one column in 'instances' table?
i.e. 'partition_uuid'
Probably this code should work
from nova.db.sqlalchemy import api
query = "ALTER TABLE instances ADD COLUMN partition_uuid VARCHAR(32)"
engine = api.get_engine()
res = engine.execute(query)
I tried reading value from 'services' table it worked fine.
e.g.
from nova.db.sqlalchemy import api
query = "select * from services"
engine = api.get_engine()
res = engine.execute(query)
row = res.fetchone()
LOG.debug("first row %(row)s"%{"row": row})
Can we add one column in 'instances' table?
i.e. 'partition_uuid'
Probably this code should work
from nova.db.sqlalchemy import api execute( query)
query = "ALTER TABLE instances ADD COLUMN partition_uuid VARCHAR(32)"
engine = api.get_engine()
res = engine.
I tried reading value from 'services' table it worked fine. execute( query)
e.g.
from nova.db.sqlalchemy import api
query = "select * from services"
engine = api.get_engine()
res = engine.
row = res.fetchone()
LOG.debug("first row %(row)s"%{"row": row})
But still I have to try adding column.