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

Apply Schema::TYPE_TINYINT to Model Rules #154

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

demonking
Copy link

When have to apply TINYINT to generateRules , otherwise it will be handled as
a string.

When have to apply TINYINT to generateRules , otherwise it will be handled as
a string.
drew1two added a commit to drew1two/yii2-enhanced-gii that referenced this pull request Mar 8, 2020
Copy link
Owner

@mootensai mootensai left a comment

Choose a reason for hiding this comment

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

pls fix tabbing

@@ -440,7 +440,8 @@ public function generateRules($table) {
switch ($column->type) {
case Schema::TYPE_SMALLINT:
case Schema::TYPE_INTEGER:
case Schema::TYPE_BIGINT:
case Schema::TYPE_BIGINT:
Copy link
Owner

Choose a reason for hiding this comment

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

please fix tabbing.

Copy link
Owner

@mootensai mootensai left a comment

Choose a reason for hiding this comment

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

please fix tabbing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants