-
-
Notifications
You must be signed in to change notification settings - Fork 261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All fields on the revision table are marked as not null. #318
Comments
It seems like this issue is introduced with doctrine/dbal v2.7, for a quick workaround you might solve this issue by locking doctrine/dbal to version v2.6 in your composer file:
|
Thanks, I'll try that out and see what happens. While my solution worked for my specific case, I just realized that So does this mean that the EntityAuditBundle is not compatible with Doctrine/DBAL > 2.6 and is there a plan to make it compatible? |
@c-butcher as we have no real active maintainer for this package, it's sure to say, that no tests against dbal 2.7 were done 😄 2.6->2.7 should in theory have no BC breaks, ... therefore version restrictions in EntityAuditBundle allow If changes can be made to allow usage with any 2.x version, I am happy to merge those. For the double negatives: I agree, quite confusing - I guess the reason for this in doctrine was to make not-nullable the default, since nullable collumns always make trouble in edge cases 😁 |
There are more problems
ALTER TABLE app_state_audit ALTER pa_id TYPE VARCHAR(255);
ALTER TABLE app_tag_audit ALTER use_counter DROP DEFAULT;
ALTER TABLE user_company_audit ALTER minimum_order_value TYPE NUMERIC(10, 0); my db schma: CREATE TABLE app_state
(
pa_id character varying(3) DEFAULT NULL::character varying
)
CREATE TABLE app_tag
(
use_counter integer NOT NULL DEFAULT 0,
)
CREATE TABLE user_company
(
minimum_order_value numeric(9,2) DEFAULT NULL::numeric,
) |
@c-butcher, could you please confirm if #320 fixes the issue? |
[#318] Add conflict with "doctrine/dbal:2.7.0"
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
The revision table that is created during the schema generation is marking all of the fields as "NOT NULL", even though a lot of them are nullable. This is causing integrity constraint violations when a revision is saved.
The text was updated successfully, but these errors were encountered: