On installing my site, I get the following SQL error:
Field 'plugin' doesn't have a default value

This is because there is indeed no default value in Rules' hook_schema() for the plugin field. It looks like this also causes #1025284: Generated feature modules don't work.

So please see the attached patch that adds a default value. Simples :-)

CommentFileSizeAuthor
rules-schema-plugin-default.patch705 bytesjames.williams

Comments

fago’s picture

Component: Rules Core » Rules Engine
Status: Needs review » Closed (works as designed)

reading the docs at http://drupal.org/node/190487, the default value is not required even if not null is TRUE. So it's up to the query to provide the default, and rules does so.
-> Let's leave it that way, so broken queries will fail. That's good.
-> We'll have to look into where your query comes from to track down your bug.

viktor.boykiv’s picture

Status: Closed (works as designed) » Needs review

rules-schema-plugin-default.patch queued for re-testing.

fago’s picture

Status: Needs review » Closed (works as designed)