Agrego campo a tabla drupal

En un modulo en l archivo mymodule.install

<?php

 

use DrupalCoreDatabaseDatabase;

/*

* Modifico la tabla commerce_product_variation_field_data

*/

function sorteo_install() {

$spec = array(

type => int,

description => ‘Campo de sorteo’,

not null => TRUE,

);

$schema = Database::getConnection()->schema();

$schema->addField(commerce_product_variation_field_data, sorteo, $spec);

}