Good evening Peeps
Another naggy problem on my sugar road. I must make the accounts.id field into and auto increment. I'm using 5.2ce on a linux box
Regards
John![]()
Good evening Peeps
Another naggy problem on my sugar road. I must make the accounts.id field into and auto increment. I'm using 5.2ce on a linux box
Regards
John![]()
You'd have to do this via the backend.
See here:
http://dev.mysql.com/doc/refman/5.1/en/alter-table.html
and here:
http://dev.mysql.com/doc/refman/5.0/...increment.html
Out of curiosity, why are you doing this? This can cause problems if you to sync the data in the future.
Regards,
Angel Magaņa
Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
Blog: http://cheleguanaco.blogspot.com.
Twitter: @cheleguanaco.
________
| Projects: |_____________________________________
|
| CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
| GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
| CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
| Round Robin Leads Assignment
| Phone Number Formatter
| CaseTwit (Twitter Integration)
______________________________________________
Hi Angel
Its not necessarily what i want to do, however we are linking data via MySQL views and the table that we are viewing uses auto increment integers. The problem is if we use random numbers it could break other applications linked to the database, so its the better of two evils to change sugar. But hey thanks for the tip, i will post my project for the community once i've finished or committed suicide, whichever comes first.
regards
John![]()
Hi Angel
The links that were in your last posting on this topic refer to changing the database, the database i'm linking to already has an auto increment as its id. what I actually want to do is turn off the id creation so that this database can populate its own id, any ideas?
Regards
John
Well, I can only answer based on the information provided.
At some point you'll need to alter the accounts table in order to make the ID column auto_increment, hence my prior references.
In order to keep it from creating ID values, you'd most likely have to change the save() function in SugarBean.php, which wouldn't be upgrade safe.
Regards,
Angel Magaņa
Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
Blog: http://cheleguanaco.blogspot.com.
Twitter: @cheleguanaco.
________
| Projects: |_____________________________________
|
| CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
| GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
| CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
| Round Robin Leads Assignment
| Phone Number Formatter
| CaseTwit (Twitter Integration)
______________________________________________
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks