cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kuangching Wang <kw...@clemson.edu>
Subject Re: how to add new data table to DB
Date Mon, 29 Sep 2014 18:39:24 GMT
By convention, which file should I add to? create-database.sql?

KC

On Sep 28, 2014, at 9:07 PM, Abhinandan Prateek <agneya2001@gmail.com> wrote:

> You still need to write Sql for creating new db table in MySQL db.
> 
> -abhi
> 
>> On 29-Sep-2014, at 6:41 am, Kuang-Ching Wang <kuangching.wang@gmail.com> wrote:
>> 
>> Hi,
>> 
>> I need to create a new table to store data in the cloudstack DB.  I followed existing
examples to:
>> - add a new VO class, with @Entity and @Table(name = “new_table_name")
>> - add a new Dao interface
>> - add a new DaoImpl class for the interface
>> - update spring context (of my network plugin) with a new bean id for the new DaoImpl
class
>> 
>> I was expecting with the change and a reinstall of my cloudstack-management service
(even doing cloudstack-setup-databases again), a new table would be created.  However, this
is not happening.
>> 
>> Is there some step I missed?
>> 
>> Thanks,
>> KC

--
Dr. Wang, Kuang-Ching, Associate Professor
308 Fluor Daniel Building
ECE Department, Clemson University
Clemson, SC 29634
864-656-0846 (Office)
864-656-7220 (Fax)
kwang@clemson.edu


Mime
View raw message