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: reduce Sales Invoice row size #27136

Merged
merged 2 commits into from
Aug 25, 2021
Merged

Conversation

ankush
Copy link
Member

@ankush ankush commented Aug 25, 2021

Sales Invoice doctype is starting to hit row length limit as many integrations add custom fields on this doctype. This is just a small change to remove VARCHAR(140) fields and reduce row size wherever possible.

Changes:

  1. Where max length is known set it instead of default which is 140. E.g. Select type and "Scan Barcode" (which is a dummy field)
  2. Change Data to Small Text where field is only used for reference like customer name, amount in words.

Sales Invoice doctype is starting to hit row length limit as many
integrations add custom fields on this doctype. This is just a small
change to remove VARCHAR(140) fields and reduce row size wherever
possible.
@ankush ankush force-pushed the invoice_field_sizes branch from 74fb5e8 to 0995d20 Compare August 25, 2021 09:38
@ankush ankush marked this pull request as ready for review August 25, 2021 10:08
@ankush ankush added backport version-13-hotfix squash Meant to tell reviewers that this PR should be squashed into a single commit while merging. labels Aug 25, 2021
@ankush ankush changed the title fix: remove VARCHARs from Sales Invoice fix: reduce Sales Invoice row size Aug 25, 2021
@coveralls
Copy link

Coverage Status

Coverage remained the same at 51.327% when pulling 45a8d13 on ankush:invoice_field_sizes into a65498d on frappe:develop.

@frappe frappe deleted a comment from mergify bot Aug 25, 2021
@nabinhait nabinhait merged commit 8d116fb into frappe:develop Aug 25, 2021
frappe-pr-bot pushed a commit to frappe-pr-bot/erpnext that referenced this pull request Aug 25, 2021
Sales Invoice doctype is starting to hit row length limit as many
integrations add custom fields on this doctype. This is just a small
change to remove VARCHAR(140) fields and reduce row size wherever
possible.

(cherry picked from commit 8d116fb)
ankush added a commit that referenced this pull request Aug 25, 2021
Sales Invoice doctype is starting to hit row length limit as many
integrations add custom fields on this doctype. This is just a small
change to remove VARCHAR(140) fields and reduce row size wherever
possible.

(cherry picked from commit 8d116fb)

Co-authored-by: Ankush Menat <ankush@iwebnotes.com>
@ankush ankush deleted the invoice_field_sizes branch September 8, 2021 09:52
asoral pushed a commit to asoral/erpnext that referenced this pull request Nov 12, 2021
Sales Invoice doctype is starting to hit row length limit as many
integrations add custom fields on this doctype. This is just a small
change to remove VARCHAR(140) fields and reduce row size wherever
possible.
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 26, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport version-13-hotfix squash Meant to tell reviewers that this PR should be squashed into a single commit while merging.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants