Closed (works as designed)
Project:
Rules
Version:
7.x-2.x-dev
Component:
Rules Engine
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Jan 2011 at 13:49 UTC
Updated:
4 Mar 2011 at 11:41 UTC
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 :-)
| Comment | File | Size | Author |
|---|---|---|---|
| rules-schema-plugin-default.patch | 705 bytes | james.williams |
Comments
Comment #1
fagoreading 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.
Comment #2
viktor.boykiv commentedrules-schema-plugin-default.patch queued for re-testing.
Comment #3
fago