CMDBuild Forum

New Database Manual Instalation

Hello Tecnoteca team, 

                               I would like to reinstall my CMDBuild and Shark apps. So,  a need to create a new empty cmdbuild DB as  i understand.
 
In Tecnichal Manual, Pag 15 "Data Base Instalation" mentioned a select to cm_crate_class, and then an  Insert to upgrade the last version of patches.  My probles is because when i execute the select in postgres, it  said.

SELECT cm_create_class('Patch','Class','DESCR:|MODE:reserved|STATUS:active|SUPERCLASS:false|TYPE:class');
 

"ERROR: function cm_create_class(unknown, unknown, unknown) does not exist
SQL state: 42883
Hint: No function matches the given name and argument types. You might need to add explicit type casts."
Of course after of than i cant exeecute the insert you sugest in the manual 
 
INSERT INTO "Patch" ("Code") VALUES ('2.4.1-01'); 

ERROR: relation "Patch" does not exist
SQL state: 42P01
Character: 13
 
I need to create the function?. If is this, could you tell me with what arguments?
Thanks in advance!
Dora
                               

We suggest you to restore the empty database available in each version release.
CMDBuild Team