Re: Update db after changing schema.py
"John P. Rouillard" <[email protected]>
| Newsgroups | gmane.comp.bug-tracking.roundup.user |
|---|---|
| Message-ID | <[email protected]> |
Hello: In message <CAJQX3DyU2=9ObPzdzHkhkaK0jndvZpz+mLNTuS76tQKCEHPNVA@mail.gmail.com> , Shiyao Ma writes: >My roundup instance is already initialised and the db (postgres) is already >populated with some content. > >I added a new class and also added a new property to a class in the >schema.py. > >How can I update the db? The db gets automaticaly updated when the schema is read and the db is opened. If you are running it as a cgi script, I don't think there is anything you have to do since it's restarted on every call. If yo are running it as a stand alone server or under wsgi or some other long running process, restarting the server/process should do it. If I am wrong I'm sure smebody will correct me. -- -- rouilj John Rouillard =========================================================================== My employers don't acknowledge my existence much less my opinions. ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/