Change column name?

  • Posts: 615
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
1 day 12 hours ago #368923

-- HikaShop version -- : 6.1.0
-- Joomla version -- : 5.3.4

Hi Hikashop team,

Is it possible to safely change the column name directly in the database, or would it be better to delete it and create a new one? I’m going to have a lot of custom fields later on, so clear naming is important to keep them organized. That’s why I’d like to change it. ;-)


Kind regards,
Lumiga
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 84497
  • Thank you received: 13739
  • MODERATOR
1 day 7 hours ago #368927

Hi,

Changing the name in the database is possible. However, you need to change both the field_namekey in the hikashop_field table and the name of the actual column of the custom field in the destination table(s).
Since your field is of the type "item" with the column name "shape", you want to edit the name of the "shape" column in both the hikashop_cart_product and the hikashop_order_product tables.

But yes, you can also delete the field and recreate it with the new column name.

Please Log in or Create an account to join the conversation.

Time to create page: 0.063 seconds
Powered by Kunena Forum