When doing a clean install of domain_access 7.dev Schema module complains about a mismatching table.

column domain_id - difference on: not null
declared: array('description' => 'TODO: please describe this field!', 'type' => 'serial')
actual: array('description' => 'Domain id. Automatic master key.', 'type' => 'serial', 'not null' => TRUE)

CommentFileSizeAuthor
#5 1286248-schema.patch750 bytesagentrickard

Comments

mallezie’s picture

$schema['domain_export'] = array(
    'description' => 'Stores canonical machine names for domains.',
    'fields' => array(
      'domain_id' => array('type' => 'serial','not null' => TRUE, 'description' => 'Domain id. Automatic master key.'),
      'machine_name' => array('type' => 'varchar', 'length' => '255', 'not null' => TRUE, 'default' => '', 'description' => 'The machine name for this domain.')),
    'primary key' => array('machine_name'),
    'indexes' => array(
      'domain_id' => array('domain_id')
    ),
  );
adding not null => True 

to domain.install fixes this.

agentrickard’s picture

Proper patch? Or at least use the php / code tags. This is hard to read.

mallezie’s picture

Sorry, i edited the issue, with code tags.
I don't know how to patch. I'll give it a try, but it won't be very fast, cause i still have to learn how to do it

agentrickard’s picture

I can do the patch. The code edit helps a ton. Thanks!

See http://drupal.org/patch/create and http://drupal.org/project/domain/git-instructions for more information about getting started with patches.

agentrickard’s picture

Status: Active » Fixed
StatusFileSize
new750 bytes

Fixed. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.