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 9139457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:23:25+00:00 2026-06-17T09:23:25+00:00

If one were to have a database that was used by a lot of

  • 0

If one were to have a database that was used by a lot of different code, what would be the most practical process to disseminating database changes throughout?

I have a personal mysql database that I’m continually “evolving”. However, I also have a lot of PHP code that’s already established to use specific column names in this database. Other than manually finding/replacing column names throughout the code, is there an established method/way/process for altering column names and disseminating that throughout the code?

From my limited view, I imagine it might need to be approached from the language side of the equation, i.e., perhaps some type of extension functionality, like with PDO.

Perhaps just a “buffer” layer of defining the current database column names as variables at the beginning of the code is the simplest way?

  • 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-17T09:23:25+00:00Added an answer on June 17, 2026 at 9:23 am

    The best thing to do is to separate the persistence of data from how that data is used in your app. The structure of your database should not define the structure of your app. Inside your app, you pass data around via objects or defined array structures. At some specified point, you store these objects/arrays into the database because you want to persist them for later use. To do this you have one defined point where your data objects/arrays are put into the database and vice-versa. Which means this point is the only point where you are referring to database-specific names. If you need to change the database schema, you only need to update the thin layer that deals with database-object conversion; you won’t need to update “the whole app” because the rest of the application refers to the naming of your defined data objects.

    This is typically known as Object-Relational Mapping, Data Access Layer and other related techniques.

    +----------+ +-----+ +---...
    |          | |     | |
    | Database <-> DAL | | rest of your app...
    |          | |     | |
    +----------+ +-----+ +---...
    

    The translation between the database structure and tangible data objects only happens in the DAL. The rest of the app just talks to the DAL to get or store data objects, it does not need to know or care what exactly the database structure looks like.

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

Sidebar

Related Questions

i have one database, and it contains some columns. My requirement is that how
I have an Oracle database that I am connecting to with PHP OCI8. One
I have a table in database that is having some fields one of which
I have a ms access database that has one table for each photo album
I have a database in one activity that I want to open in another
I have a website that has one database I have also Desktop apps that
I have a database named contacts.db with a table named TABLE_NAME that has one
With my database upgrade scripts, I typically just have one long script that makes
I have a large script that has no database connection yet. I need one
I have a MS access database. In that, one table consists of questions and

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.