Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

easypopulate, How to change sql database field?


Elazar

Recommended Posts

Hi !

 

Could someone help me please ??

 

I use easypopulate 2.78v. I want to increase the product_model field from 12 chars to 20 or even 25 chars, that it will allow me to use long serial numbers.

 

What is the sql command do I need to use ??

 

Any help will be much appreciated !

 

Thanks in advance :)

 

Regards,

 

Elazar

Link to comment
Share on other sites

You can just use phpMyAdmin to increase the field size. It's an option in the tabel detail to edit a field definition.

 

 

Thanks a lot kgt !

 

I found that I need to modify 2 fields. I can use also the SQL Text Tool with the further commands. Is it right to do it this way ??

 

Paste the code below for each table into the sql query box in phpMyAdmin changing the number 12 to a new number and click save.

 

 

alter table osc_products change products_model products_model varchar(25);

 

alter table osc_orders_products change products_model products_model varchar(25);

 

Thanks

 

Regards,

Elazar

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...