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

Use a text data type for the description column in courses table #3

Open
newtonjob opened this issue Aug 31, 2023 · 1 comment
Open

Comments

@newtonjob
Copy link

$table->string('description', 2000);

A description column typically contains some long text. In MySQL, it is typical to use a TEXT column for such field instead of a VARCHAR.

@justinkekeocha
Copy link
Owner

Okay I will change that.

Due to indexing and better performance of VARCHAR,I decided to use string most times. https://www.scaler.com/topics/varchar-vs-text-mysql/

But I will change that. Thanks for the correction

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

No branches or pull requests

2 participants