Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8548251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:27:06+00:00 2026-06-11T13:27:06+00:00

We recently ran through an upgrade issue because a column in our database schema

  • 0

We recently ran through an upgrade issue because a column in our database schema was modified accidentaly from

("SECURED" NUMBER(1,0) DEFAULT 0 NOT NULL);

to

("SECURED" NUMBER(1,0) DEFAULT NULL NOT NULL);

After analysis, it looks like the column has been copy-pasted in a SQL-editor client and we lost some constraints.

I like what Puppet can do in terms of host configuration: from what I understand, you declare the host configuration in a manifest and then Puppet check that the host meets the configuration requirements and if not, it makes everything needed to ensure the system is configured as declared in the manifest.

I wish a similar tool exists in the database field: you declare the database schema with tables, column names, types, constraints and so on. Each time the tool is run, it ensures that the schema definition is respected, and if not it fixes it.

This tool would have “seen” that the constraint DEFAULT NULL was incorrect and it would have changed it into DEFAULT 0 and thus fixed the human-error with automation.

Do you know if such tools exist?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T13:27:07+00:00Added an answer on June 11, 2026 at 1:27 pm

    You can automate database schema comparisons using SchemaCrawler. SchemaCrawler is a free command-line tool that generates database schema details as text, in a format designed to be diff-ed. You can automate the generation of database schema text files on a regular interval, and then diff them against an expected text file. In terms of automatic fixes, I would advise against that in a production schema. You would probably want an alert a human that the schema needs an update.

    Sualeh Fatehi, SchemaCrawler.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently ran into a bug in my code when using boost::bind . From
I recently ran into an error when I tried to change the column name
I recently ran into an issue where a query was causing a full table
I recently ran into an unusual issue with compiling an internal application, as you
I recently ran into an odd issue where I'd get a const_iterator instead of
Recently, I ran some of my JavaScript code through Crockford's JSLint , and it
I recently ran into major problems inserting records into a SQL Server backend from
I recently ran the database repair tool as per this link: http://www.magentocommerce.com/wiki/1_-_installation_and_configuration/db-repair-tool At the
I'm a BizTalk newbie, and recently ran into some issue where the biztalk orchestration
I recently ran some of my ASP pages through HTML Tidy validation and found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.