Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Technical
  3. Database Table Drop Safety v 19.0
  4. Sales Conditions FAQ

Database Table Drop Safety

by TuplesInc https://tuplesinc.com
Odoo

$ 69.49

v 19.0 Third Party
Live Preview
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Lines of code 1551
Technical Name db_table_safety
LicenseOPL-1
Websitehttps://tuplesinc.com
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Lines of code 1551
Technical Name db_table_safety
LicenseOPL-1
Websitehttps://tuplesinc.com
  • Description
  • License
DB Table Safety

Database Table Drop Safety

Two-phase table drop protection for Odoo 19. Automatically backs up your data before module uninstalls, intercepts DROP TABLE commands, and lets you restore everything with a single click.

Odoo 19 Community + Enterprise PostgreSQL Event Triggers

See It In Action

▶ Watch Full Demo Video

Full walkthrough: install, create data, uninstall, restore, and verify

Key Features

Everything you need to protect your database from accidental data loss

🛡

Silent Interception

DROP TABLE commands are intercepted via PostgreSQL event triggers. Tables with data are backed up automatically.

📦

Pre-Uninstall Snapshots

Full table snapshots are taken before module uninstall strips columns, preserving all your data with complete schema.

🔄

One-Click Restore

Restore backed up data with intelligent column matching. Handles schema changes between backup and restore.

🔒

Authenticated Deletion

Permanent deletion requires password re-authentication or system PIN. Every attempt is logged.

📝

Full Audit Trail

Every action is logged: who dropped what, when, restore attempts, permanent deletions, and blocked actions.

⚙

Settings Page

Configure authorized users, safety PIN, email notifications, and enable/disable protection from Settings.


01. How It Works

When a module is uninstalled (or a table is manually dropped), DB Table Safety intercepts the operation and creates a full backup of the table data in a protected deleted_tables PostgreSQL schema. Empty tables (wizards, relation tables) are skipped automatically. Only tables with actual data are backed up.


02. Before: Your Data

You have products, customers, and a sale order in the system. Everything is working fine.

Products before uninstall Customers before uninstall
Sale order list Sale order detail

Products, customers, and a sale order with order lines before uninstall


03. Module Uninstalled

The Sales module is uninstalled. Without DB Table Safety, all sale orders, order lines, and related data would be permanently lost. With our module installed, the data is silently backed up before anything is deleted.

Apps after uninstall Home screen after Sales uninstalled

Sales module gone. But your data is safe in the backup schema.

Deleted Tables list

Deleted Tables view showing all backed up tables with record counts and state


04. Restore Your Data

Reinstall the module, then click Restore. If the table already exists (module reinstalled), you'll see a warning showing how many current rows will be replaced. If the table doesn't exist yet, the backup is moved back directly.

Restore confirmation - truncate Restore confirmation - recreate

Delete and Restore (table exists) vs Confirm Restore (table doesn't exist)

Order restored After restore state

Sale order fully restored with all data. Backup marked as "Restored".


05. Full Audit Trail

Every action is recorded in the Audit Log: soft deletes during uninstall, restores by administrators, permanent deletions, and blocked attempts. Track who did what, when, and whether it was approved - all from a single view with filters and grouping.

Audit Log

Audit Log showing soft deletes, restores, with user tracking and status badges


06. Configuration

Configure the module from Settings. Enable/disable protection, set a safety PIN for permanent deletions, choose authorized users, and toggle email notifications.

Settings page

07. Clean Dashboard

When no tables have been dropped, the Deleted Tables view shows a clean empty state. The module runs silently in the background until it's needed.

Empty state

08. Tested and Verified

27 automated tests covering every scenario. All passing.

27 Tests 27 Passed 0 Failed

Category What We Test What It Means Status
Setup Backup schema created The protected storage area is ready the moment you install PASS
Event trigger active The database-level interceptor is watching for DROP TABLE commands PASS
Drop Interception Table with data backed up Tables containing your data are saved instead of destroyed PASS
Empty tables skipped Wizard and system tables with no data are dropped normally PASS
No duplicate backups Dropping the same table multiple times doesn't create redundant copies PASS
Missing table handled Attempting to back up a nonexistent table fails gracefully PASS
Audit Every action logged Who did what, when, and whether it succeeded - always recorded PASS
Restore Table gone - recreated If the table was removed, it's recreated from the backup PASS
Table exists - replaced If module was reinstalled, old data replaces new data cleanly PASS
ID sequence synced New records get correct IDs and sequence numbers after restore PASS
Schema changes handled Columns added or removed since backup - restore still works PASS
Corrupt backup detected Incomplete backups show a clear error instead of breaking your DB PASS
FK Constraints Referenced tables restored Tables linked to invoices, orders, etc. restore without FK errors PASS
Auth Correct password accepted Authorized users can delete backups with their login password PASS
Wrong password blocked Incorrect password is rejected, backup stays safe PASS
Correct PIN accepted System PIN works as an alternative to password PASS
Wrong PIN blocked Incorrect PIN is rejected, backup stays safe PASS
Safety Active backups protected Can't accidentally delete a backup while it's still active PASS
Restored records cleanable After restore, tracking records can be cleaned up PASS
Related Tables Batch links tables Tables dropped together are grouped as related PASS
No batch, no related Standalone backups show no related tables PASS
Restore with related "Also Restore Related" restores all sibling tables in one click PASS
Restore without related Unchecking restores only the selected table PASS
System Bypass flag works Internal operations can bypass protection when authorized PASS
Core models skipped System tables are never unnecessarily backed up PASS
Row count accurate UI count matches actual backed up rows PASS
Restored shows zero After restore, count shows 0 (data moved back) PASS

Need Help?

If you encounter any errors, issues, or unexpected behavior during installation, configuration, or restore operations, please do not hesitate to reach out. We are here to help and will respond as quickly as possible.

support@tuplesinc.com
Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with