Skip to content
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

Fix for issue #335 #421

Closed
wants to merge 1 commit into from
Closed

Fix for issue #335 #421

wants to merge 1 commit into from

Conversation

kjusupov
Copy link

Fix related to generation of model rules (setting default values) specific to Postgres (issue #335)

Note: I will update the original issue with more details.

Q A
Is bugfix? yes
New feature? no
Breaks BC? no
Tests pass? Not sure
Fixed issues #335

@samdark samdark added this to the 2.1.4 milestone Nov 20, 2019
@samdark samdark added type:bug Bug pr:request for unit tests Unit tests are needed. labels Nov 20, 2019
@yii-bot
Copy link

yii-bot commented Nov 20, 2019

Thank you for putting effort in the improvement of the Yii framework.
We have reviewed your pull request.

In order for the framework and your solution to remain stable in the future, we have a unit test requirement in place. Therefore we can only accept your pull request if it is covered by unit tests.

Could you add these please?

Thanks!

P.S. If you have any questions about the creation of unit tests? Don't hesitate to ask for support. More information about unit tests

This is an automated comment, triggered by adding the label pr:request for unit tests.

@@ -335,19 +337,24 @@ public function generateRules($table)
{
$types = [];
$lengths = [];
$defValues = [];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$defValues = [];
$defaultValues = [];

@samdark samdark removed this from the 2.1.4 milestone Jan 17, 2020
@kjusupov kjusupov closed this Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:request for unit tests Unit tests are needed. type:bug Bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants