-
-
Notifications
You must be signed in to change notification settings - Fork 347
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
mysql porting v2 #98
Milestone
Comments
existing check constraints: alter table promo_code add constraint "check_promo_code_min_length" check (char_length(promo_code) >= 7);
alter table promo_code add constraint "check_discount_type" check (discount_type = 'FIXED_AMOUNT' OR discount_type = 'PERCENTAGE');
alter table promo_code add constraint "check_discount_amount" check (
CASE
WHEN discount_type = 'FIXED_AMOUNT' THEN discount_amount >= 0
WHEN discount_type = 'PERCENTAGE' THEN discount_amount >= 0 and discount_amount <= 100
END); |
syjer
added a commit
that referenced
this issue
May 2, 2016
… promo code with a start date in the past
The constraint has been ported as a code in the service layer. |
syjer
added a commit
that referenced
this issue
May 5, 2016
- removing the @transactional annotation from the integration tests mysql and hsqldb are able to run their tests - deleting the test plugin ensure that no constraint violation is done during the test
migration test has been reenabled :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Some additional task related to the mysql support:
The text was updated successfully, but these errors were encountered: