As previously announced via banners and our newsletters, support is no longer available through this platform.

For easier navigation, you can still click on "Submit a Ticket" here, choose the appropriate category, and you'll be redirected to the correct support channel for your plugin.

You can still access your previous tickets and browse public tickets, but please note that responding to tickets is no longer possible.

Paid customers: Please log in to your store account for support.

Pre-purchase questions: Use the support widget in the bottom-right corner of our websites:
https://wpamelia.com
https://wpdatatables.com
https://wpreportbuilder.com

Okay
  Public Ticket #1003132
delete
Closed

Comments

  •  5
    FoodCoop started the conversation

    Hi,

    I have a table where I defined wdt_id as ID column for editing. 

    I use this row for a current number. If I am adding a new row, the value is increasing (auto increment in the sql table is on). This is ok an useable.

    But if I delete a row (deleting the yellow row) in the table then the auto increment value in the My_SQL table is not decreasing.

    The result is, that I have not a uniform numbering in my table.

    Can you help?

    Best regards

    Siegfried

    PS Congratulation to the plugin. It is really the best to work with tables and I tried a lot of such plugins.

  • [deleted] replied

    Hi Uebes,

    This is limitation on MySQL side and not ours. From their documentation:

    You cannot reset the counter to a value less than or equal to the value that is currently in use. For both InnoDB and MyISAM, if the value is less than or equal to the maximum value currently in the AUTO_INCREMENT column, the value is reset to the current maximum AUTO_INCREMENT column value plus one.

    There is a couple solutions to affect this behaviour but we are not recommending it because they are workarounds.


  •  5
    FoodCoop replied

    ok thank you.