Title: Database Table
Last modified: December 8, 2018

---

# Database Table

 *  Resolved [demyrps](https://wordpress.org/support/users/demyrps/)
 * (@demyrps)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/database-table-7/)
 * I accidentally deleted the plugin’s database table and now it’s broken. I’ve 
   tried uninstalling and reinstalling the plugin, but it doesn’t regenerate the
   table. What can I do?
    -  This topic was modified 7 years, 5 months ago by [demyrps](https://wordpress.org/support/users/demyrps/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [YITHEMES](https://wordpress.org/support/users/yithemes/)
 * (@yithemes)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/database-table-7/#post-10968757)
 * Hi there,
    you have to force the creation of the table. Please open the file **
   wp-content\plugins\yith-desktop-notifications-for-woocommerce\includes\class.
   yith-wcdn-desktop-notifications-db.php** and scroll the file until the method**
   install**. Change the code like following code.
 * From
 *     ```
       public static function install() {
                   self::create_db_table();
               }
       ```
   
 * To
 *     ```
       public static function install() {
                   self::create_db_table(true);
               }
       ```
   
 * After that, save the changes and open one page of your site, anything, not important.
   
   The table should be created. If yes, you can reset the code at the previous version.
   I hope to be helpful for you.
    -  This reply was modified 7 years, 5 months ago by [YITHEMES](https://wordpress.org/support/users/yithemes/).
 *  Thread Starter [demyrps](https://wordpress.org/support/users/demyrps/)
 * (@demyrps)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/database-table-7/#post-10969747)
 * That worked great, thanks!
 *  Plugin Author [YITHEMES](https://wordpress.org/support/users/yithemes/)
 * (@yithemes)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/database-table-7/#post-10973058)
 * Hi there,
    very happy to see that my suggestion has helped you 🙂 If you’re happy
   of our support, it would be fantastic receive your review at [https://wordpress.org/support/plugin/yith-desktop-notifications-for-woocommerce/reviews/#new-post](https://wordpress.org/support/plugin/yith-desktop-notifications-for-woocommerce/reviews/#new-post)
 * Many thanks for your time.
    Have a nice day!
    -  This reply was modified 7 years, 5 months ago by [YITHEMES](https://wordpress.org/support/users/yithemes/).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Database Table’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/yith-desktop-notifications-for-woocommerce_ba6d7b.
   svg)
 * [YITH Desktop Notifications for WooCommerce](https://wordpress.org/plugins/yith-desktop-notifications-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/yith-desktop-notifications-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/yith-desktop-notifications-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yith-desktop-notifications-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yith-desktop-notifications-for-woocommerce/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [YITHEMES](https://wordpress.org/support/users/yithemes/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/database-table-7/#post-10973058)
 * Status: resolved