Drupal: module update

I've module and I've update to alter database table, shortly I need to do something like

ALTER TABLE `TABLE` ADD `FIELD` INT UNSIGNED NOT NULL AFTER `SOME_FIELD` 

so is there any built in function in Drupal to make this changes I considered db_add_field function didn't work?

Sultan

Answers


Using db_add_field()

db_add_field('TABLE', 'FIELD', "VARCHAR( 255 ) NOT NULL DEFAULT '0' AFTER FIELD_2");

Need Your Help

Get the 'dropped' div from the onDrop callback using React

javascript events draggable reactjs

The onDrop event is being triggered in a React component but since it is a synthetic event, the parameters for the event only seem to include the destination of the dropped div, not the dropped div

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.