What engineering database schema change governance decisions actually govern
The engineering database schema change governance decision record does not cover the technical choice of migration framework — Flyway versus Liquibase versus ORM-bundled migrations versus raw SQL scripts tracked in version control. It does not cover the naming convention for migration files, the directory structure for migrations in the repository, or whether migrations are applied automatically on application startup or run as a separate deployment step. Those are technical workflow decisions made when the development environment is established, and they have meaningful implications for consistency and auditability, but they are not what the governance record addresses.
The engineering database schema change governance decision record covers the authority surface that sits above the technical workflow: once a migration has been written and merged into version control, who is accountable for confirming that it is safe to execute against the production database — not safe in the sense that the SQL is syntactically correct, but safe in the sense that the operation it performs will not lock the production database's most queried tables for longer than the application's degradation tolerance, will not destroy data that cannot be recovered within the recovery time objective, and will not break any service that reads the production database schema. This accountability is not automatically provided by the code review process: a code reviewer evaluating a migration for correctness confirms that the migration produces the intended schema change, but may not evaluate whether the operation acquires an exclusive lock on a table with 400 million rows, whether the ORM-generated migration drops and recreates a table where the developer only intended to rename a column, or whether the column being renamed is read by a background job service that queries the database directly and was not updated in the same pull request.
The engineering database schema change governance decision record also does not cover the operational database administration decisions — the decisions about which users and service accounts have DDL privileges on the production database, how the database is backed up and how recovery is tested, or how the production database is monitored for performance and disk usage. Those decisions are made in the production access governance model and the disaster recovery governance model. The schema change governance model is a parallel concern: production access governance determines whether a given identity can execute DDL against the production database; schema change governance determines whether a given DDL operation has been reviewed for production safety, tested for rollback, and evaluated for cross-service impact before the authorized identity applies it.
What the database schema change governance decision record covers is the authority surface for making three sequential determinations that the production database's integrity requires a named authority to make for every schema change: first, whether the migration is safe to execute against the production database's current state — including the table's current row count, current query load, current active transactions, and the specific DDL operation the migration performs and whether that operation acquires a lock that the application cannot tolerate; second, whether the organization can reverse the change if it produces an unexpected result — not whether a down migration script exists in version control, but whether that down migration has been executed against a database restored from production backup and confirmed to work correctly without destroying data or causing a lock duration that exceeds the production incident threshold; and third, whether every service that depends on the modified schema has been identified and confirmed compatible before the migration is applied — specifically, whether any service reads from the production database directly rather than through the primary application's API layer, and whether that service has been updated to handle the new schema state before the migration executes.
Failure story 1: the organization with no migration authorization model
A 22-person B2B SaaS company provides a business intelligence platform for mid-market e-commerce operators — the platform aggregates sales data, inventory data, and customer behavior data from e-commerce integrations into a reporting dashboard with drill-down analytics and scheduled report delivery. The company's database is a PostgreSQL instance with approximately 60 tables, managed with an ORM-bundled migration framework. Migration files are reviewed as part of standard pull request review. There is no designated migration reviewer, no migration review checklist, and no requirement for a rollback procedure before a migration is merged. Engineering at this company is a seven-person team.
In the company's third year, the engineering team redesigns the report delivery feature. The old feature stored scheduled report configurations in a table called report_schedules with a column named delivery_format that stored the output format as a string ('csv', 'pdf', 'xlsx'). The new feature replaces the delivery_format column with a foreign key to a new report_formats table, which allows the team to add new delivery formats and configuration options without schema changes. The developer implementing the redesign writes a migration that creates the report_formats table, inserts the initial format rows, adds the report_format_id foreign key column to report_schedules, backfills the foreign key from the existing delivery_format values, and then drops the delivery_format column. The developer reviews the migration, confirms it is correct, and merges the pull request with the new application code that uses the report_format_id column.
The pull request is reviewed for correctness — the new application code that uses report_format_id is correct, the migration logic is accurate, and the backfill logic maps the old delivery_format string values to the new report_formats table rows correctly. The reviewer does not check whether the deployed application code that handles the report delivery background jobs — a separate service deployed as a container on the company's staging and production clusters — has been updated to use the new column before the migration drops the old column. The report delivery background job service, which runs scheduled report exports at 6 AM daily for all subscribers in the customer's time zone, reads the delivery_format column directly from the report_schedules table using a raw SQL query maintained in the background job service's codebase.
The migration is applied to the production database at 2:15 PM on a Thursday during a low-traffic window. The main application, which has been deployed with the new application code, operates correctly with the new report_format_id column. At 6:00 AM the following morning, the report delivery background job service begins its daily export run, queries the report_schedules table for all reports scheduled for the current time window, and receives a database error: column delivery_format does not exist. The background job service has no alerting on query errors — it logs the error and exits without producing the scheduled exports. The first subscriber to notice the missing report emails support at 7:15 AM. By 9:30 AM, the support queue has seventeen tickets from subscribers reporting missing scheduled exports. Three of those subscribers are enterprise customers on data processing agreements whose contracts include a scheduled report delivery SLA.
The VP Engineering identifies the root cause at 9:45 AM: the background job service was not updated before the migration dropped the delivery_format column. The delivery_format column cannot be restored by running the down migration — the down migration adds the column back but cannot reconstruct the string values, because the down migration was not written to include a backfill from the report_formats table to the delivery_format column. The VP Engineering restores the production database from the most recent backup, taken at 2:00 AM — a 7-hour-and-45-minute-old snapshot. The restore takes forty minutes. The database restores to the pre-migration schema state; the report_format_id column does not exist; the main application, which was deployed with code expecting report_format_id, fails at every endpoint that reads from report_schedules. The VP Engineering deploys the previous version of the main application, which uses delivery_format, and confirms that both the main application and the report delivery background job service are operational. The company is in a fully degraded state from 9:45 AM until 11:20 AM — a one-hour-and-thirty-five-minute window during which no subscriber can access the reporting dashboard.
The recovery consumes the rest of the day: the developer updates the background job service to use the new report_format_id column, the team re-deploys the main application with the new schema code and the updated background job service simultaneously, and re-runs the migration at 4:30 PM after confirming that every service reading from report_schedules has been updated. The three enterprise customers whose SLA covered scheduled report delivery receive formal post-mortems within five business days. Two of the enterprise customers include the incident in their next quarterly business review and require written confirmation that a migration authorization process has been implemented before the next contract renewal.
The VP Engineering's root cause analysis: the migration review process evaluated the migration for correctness of the schema change but not for cross-service impact. The report delivery background job service's direct database dependency on the delivery_format column was not documented anywhere — it was invisible to the developer who wrote the migration because the background job service's SQL query was not in the same repository as the migration. The organization had no cross-service schema coupling map. The organization had no requirement to identify all services reading from a modified table before the migration was applied. The organization had no migration authorization model that required a named reviewer to evaluate the migration for production safety as distinct from code correctness. The result was an unreviewed destructive operation applied to a production database with cross-service dependencies that the development team did not know existed.
Failure story 2: the organization with migration review but no rollback protocol
A 38-person B2B SaaS company provides a workflow automation platform for operations teams at mid-market companies — the platform manages approval workflows, task assignments, escalation rules, and audit trail generation for operational processes like purchase order approval, expense reimbursement, and compliance sign-off. The company's database is a PostgreSQL instance with approximately 180 tables and a mature migration practice: all migrations are reviewed by a designated senior engineer before merge, the migration checklist includes a check for destructive operations, and migrations are applied to a staging environment for 24 hours before being promoted to production. Engineering at this company is a fifteen-person team.
In the company's fourth year, the company performs a data quality improvement initiative. The audit trail feature, which is a core differentiator of the platform, tracks every workflow state change with a user_id column in the workflow_events table that stores the identifier of the user who triggered the event. The team discovers in an analytics review that approximately 3% of rows in workflow_events have a null user_id — these represent workflow transitions triggered by scheduled automation rules rather than by a human user. The VP Engineering determines that this ambiguity creates problems for enterprise customers' audit reports, which cannot distinguish between a human-triggered workflow transition and an automation-triggered one. The fix is to add a NOT NULL constraint to the user_id column and to backfill the null values with a designated system user identifier that represents the automation engine.
The developer writes the migration: first, insert a system user record into the users table with the identifier SYSTEM_AUTOMATION; second, UPDATE workflow_events SET user_id = (SELECT id FROM users WHERE identifier = 'SYSTEM_AUTOMATION') WHERE user_id IS NULL; third, ALTER TABLE workflow_events ALTER COLUMN user_id SET NOT NULL. The migration is reviewed by the designated senior engineer. The reviewer confirms that the migration logic is correct — the backfill will correctly set the null user_id values to the system user identifier, and the NOT NULL constraint will prevent future null values. The reviewer notes that workflow_events is a large table but does not check the row count or estimate the ALTER TABLE lock duration. The migration passes review and is applied to staging, where the workflow_events table contains 2.1 million rows. On staging the migration completes in four seconds. The migration is promoted to production.
The workflow_events table in production contains 183 million rows. The UPDATE step runs for eleven minutes, acquiring a row-level lock on the rows being updated but allowing reads to continue. The ALTER TABLE SET NOT NULL step, which must verify that no null values remain in the column before setting the constraint, acquires an ACCESS EXCLUSIVE lock on the entire workflow_events table. It holds that lock for forty-one minutes. During those forty-one minutes, every read and write to workflow_events is blocked. The workflow automation platform's core features — creating new workflow events, displaying workflow status, loading audit trail views — all require reads from or writes to workflow_events. The application returns timeout errors on every request that touches a workflow. At three minutes into the lock, the on-call engineer receives a cascade of error rate alerts. By five minutes, the company's status page reports degraded service. By fifteen minutes, the company has posted a service incident notice. By forty minutes, enterprise customers are filing support tickets with their account managers asking for a status update and an estimated resolution time.
The VP Engineering, who is monitoring the incident, queries the database for the lock status and confirms that the ALTER TABLE is still running. She evaluates the rollback option: the down migration reverses the NOT NULL constraint (ALTER TABLE workflow_events ALTER COLUMN user_id DROP NOT NULL), but that ALTER TABLE itself will acquire an ACCESS EXCLUSIVE lock on the 183-million-row table and will hold it for a similar duration — the same forty-minute window that the forward migration is currently holding. Rolling back the migration would extend the production degradation window by another forty to fifty minutes while the rollback executes. The VP Engineering decides to allow the migration to complete rather than double the degradation window. The ALTER TABLE completes at 52 minutes; the lock releases; the application returns to normal operation. Total degraded window: 52 minutes.
The post-incident review produces the rollback protocol gap finding: the migration review checklist did not include a lock duration estimate for large-table DDL operations. The staging environment's 2.1-million-row workflow_events table produced a four-second migration time that did not predict the production table's 183-million-row migration time. The reviewer who approved the migration knew that workflow_events was a large table but did not query its production row count or estimate the ALTER TABLE lock duration before approving the migration. The down migration script existed in version control and had never been tested against a production-scale database. When the VP Engineering needed to evaluate the rollback option in real time during the incident, she was evaluating it without the benefit of a tested rollback procedure — she was making a judgment call under incident pressure about whether the rollback's unknown-but-estimated duration was worth the certain extension of the production degraded window. The governance gap was not the absence of a down migration script but the absence of a tested rollback procedure that would have provided the VP Engineering with a confident estimate of the rollback duration before the incident, allowing her to decide the rollback strategy in advance rather than under production pressure.
Failure story 3: the organization with mature migration governance and no cross-service schema impact review
A 51-person B2B SaaS company provides an enterprise compliance management platform — the same domain as the third company in the multi-tenant isolation governance post, a different company — managing evidence collection, control documentation, and audit preparation workflows for mid-market technology companies navigating SOC 2 and ISO 27001 programs. The company's migration governance is mature: a formal migration review checklist covers lock acquisition risk, destructive operations, rollback procedure testing, and row count verification for large tables; migrations are applied to a staging environment for 48 hours; and the VP Engineering reviews and approves every migration that modifies a table with more than 10 million rows or performs a destructive operation. The company operates a primary web application and three additional services: an audit export service that generates compliance audit packages on demand, a webhook delivery service that sends compliance event notifications to customer-configured endpoints, and an analytics service that powers the compliance benchmark dashboards. Engineering at this company is a twenty-one-person team.
In the company's fifth year, the team performs a naming consistency improvement across the product. The compliance controls table has a column named ctrl_owner_email that stores the email address of the control owner — the person accountable for the control's implementation and evidence collection. The column name ctrl_owner_email is an artifact of an early naming convention that abbreviated 'control' as 'ctrl', inconsistent with the rest of the schema's full-word column names. The team renames the column to control_owner_email across the application. The migration adds a new column control_owner_email, copies the data from ctrl_owner_email, removes ctrl_owner_email, and updates the NOT NULL and default constraints on the new column. The migration review is thorough: the reviewer confirms the data copy is correct, confirms the row count (12.3 million rows in compliance_controls — above the threshold requiring VP Engineering approval), estimates the migration duration based on the online migration tool being used, and confirms the rollback procedure has been tested against a production-scale backup. The VP Engineering approves the migration. The migration is applied to production without incident. The compliance controls feature in the main web application, which has been updated to use control_owner_email, operates correctly.
The audit export service, which generates compliance audit packages in a format required by SOC 2 audit firms, reads from the compliance_controls table using a direct database connection. The audit export service was built eighteen months earlier by a contractor who is no longer with the company. Its codebase is stored in a separate repository from the main application. The audit export service's database query explicitly selects ctrl_owner_email from compliance_controls — the column that the migration has just removed. The audit export service does not receive API calls during the migration window; the first audit export request after the migration is a background job triggered by a customer at 11:00 PM the night of the migration deployment. The background job fails silently: the query returns a database error, the job exits with a non-zero status, the error is logged to the audit export service's log file, and the customer's audit package is not generated. The audit export service has no alerting on job failures. The customer does not notice that the audit package was not delivered — the package delivery mechanism sends an email notification with a download link when the package is ready, and the customer assumed the package was taking longer than usual to generate.
Over the nine days following the migration, eleven audit export requests fail silently. On the ninth day, an enterprise customer's compliance lead is preparing for a SOC 2 Type II audit kickoff meeting with the company's external auditor. She opens the compliance platform to download the audit package she requested nine days earlier and finds no completed package. She contacts enterprise support. The support engineer checks the audit export service's job queue and discovers eleven failed jobs over nine days. The engineer reads the job logs and identifies the database error: column ctrl_owner_email does not exist. The VP Engineering is notified and identifies the root cause within thirty minutes: the audit export service's direct database dependency on the old column name was not captured in the migration's cross-service impact review because the company had no cross-service schema coupling map. The fix requires updating the audit export service to use control_owner_email and redeploying it — a one-hour task. The eleven affected audit export jobs are re-queued and complete successfully.
The enterprise customer whose audit kickoff was disrupted escalates the incident to her company's VP of Legal and Compliance. The company's compliance platform is used to manage the evidence for a SOC 2 Type II audit that is under a fixed timeline — the external auditor's engagement window is contracted and cannot be deferred without a rescheduling fee. The enterprise customer requires a written explanation of why the audit export service failed for nine days without detection, a written description of the monitoring gaps that allowed the failure to persist undiscovered, and a written commitment that the company will implement monitoring for all background job services before the next contract renewal. The enterprise customer also asks whether any other services read directly from the compliance platform's database — a question the company cannot answer confidently because the cross-service coupling map does not exist.
The VP Engineering's root cause analysis produces two findings. First, the migration review process was thorough for the operations it evaluated — the main web application's use of ctrl_owner_email was confirmed updated before the migration was applied, the migration itself was tested and the rollback procedure was verified — but the review process evaluated cross-service impact only against the services known to the reviewing team. The audit export service was developed by a contractor eighteen months earlier, its codebase was in a separate repository, and no member of the current engineering team had recently read its code or thought about its database dependencies. The company had no process for maintaining a cross-service schema coupling map, and the migration review's cross-service impact check was performed from the reviewing team's knowledge of the services using the database rather than from a systematic audit of which services queried which columns. Second, the audit export service had no monitoring that would detect job failures and alert the engineering team. A service that processes compliance documents and generates audit packages for enterprise customers operating under regulatory compliance programs was operating with no alerting on its primary work output — job completion and failure rates — for eighteen months since it was deployed.
The two structural properties engineering database schema change governance decisions set
The three failure stories each involve a different governance gap, but they share the same two structural properties that engineering database schema change governance decisions determine.
Data integrity accountability ceiling
The data integrity accountability ceiling is the structural property of the schema change authorization model, the migration execution and verification model, and the migration rollback and recovery model that determines whether the organization can produce a complete, attributable account of which schema change caused a data integrity failure, who authorized the change, what the executed migration contained, and whether the organization can restore the production schema and data to a known-good state within a time window that bounds customer impact — that every schema change reaching production was reviewed for correctness and production safety by a named authority whose accountability includes destructive operations like column drops and constraint additions on large tables, that the migration execution process includes a post-deployment verification step confirming the migration completed correctly and the application is operating normally against the new schema before the deployment is considered successful, and that a rollback procedure for every migration has been tested before the migration is applied to production so that the organization's response to a migration failure is execution of a known-good procedure rather than improvised database surgery.
The data integrity accountability ceiling is bounded by three models:
The schema change authorization model names the designated authority responsible for approving schema migrations for production execution, the review criteria the authorization requires, and the documentation that records the authorization. The model's scope includes: the authority designation (a designated migration reviewer — not the developer who wrote the migration but a reviewer with specific production database knowledge who is accountable for evaluating the migration for production safety rather than only for correctness; for migrations that perform destructive operations or modify tables above a size threshold, the VP Engineering is the designated reviewer; below the size threshold, a designated senior engineer with database operations experience is the designated reviewer; the authority designation is documented in the migration governance record and is updated within thirty days of any change to the reviewing team); the review checklist (a written checklist of production safety criteria that the designated reviewer must evaluate for every migration before approval: does the migration perform a lock-acquiring DDL operation on a table whose current row count requires a lock duration estimate; does the migration perform a destructive operation (DROP COLUMN, DROP TABLE, TRUNCATE, or column type change that the ORM's migration generator implements as DROP + CREATE) that cannot be reversed without data loss; has the migration been generated by an ORM migration tool and reviewed for unintended operations the tool may have included that are not reflected in the developer's described intent; does the migration include a backfill operation on a large table whose estimated duration has been calculated based on the production row count and not only verified in a development or staging environment with a significantly smaller row count; and has the down migration script been tested against a production-scale database copy and confirmed to execute within an acceptable duration); the authorization record (for every migration applied to the production database, a record documenting the migration identifier, the designated reviewer's name and approval timestamp, the review checklist completion confirmation, any review notes or conditions, and the type of operation — additive, constraint-adding, destructive, or cross-service-impacting — that the reviewer classified the migration as; the authorization record is maintained as a governance artifact separate from the migration version control history, which records what was applied but not who authorized it or how it was reviewed); and the ad hoc schema change prohibition (a governance control that blocks direct DDL execution against the production database outside the authorized migration pipeline — a database administrator connecting to the production database and executing ALTER TABLE or DROP COLUMN directly, without the migration file being reviewed and authorized through the migration governance process, is prohibited by configuration where the production database's DDL privileges are restricted to the migration execution service account; ad hoc schema changes executed under emergency conditions must be performed through an emergency migration pathway with the same review requirements as standard migrations, documented in the emergency change log, and committed to the migration version control history within twenty-four hours of execution).
The migration execution and verification model defines the deployment sequence for migrations and application code changes, the production environment checks before a migration is applied, and the post-deployment verification steps that confirm the migration completed correctly and the application is operating normally. The model's scope includes: the deployment sequencing requirement (migrations that add new columns required by new application code must be applied before the new application code is deployed, so that old application code reading the new column produces a column-not-found error rather than null reads that may silently corrupt application state; migrations that remove columns still referenced by deployed application code must be preceded by an application code deployment that removes the column reference, with the removal confirmed in every running application instance before the migration removes the column; the deployment sequence is planned and documented in the migration authorization record before the migration is applied to any environment); the pre-execution environment check (before a migration is applied to the production database, the designated reviewer or the deployment automation confirms: the production row count for every table the migration modifies, the current query rate for every table the migration modifies, whether any long-running transactions are currently open against the tables the migration will lock, and whether the production environment is currently within a release freeze window that prohibits schema changes; a migration that fails the pre-execution check is deferred until the check passes or until the VP Engineering explicitly approves applying the migration under the failing condition with documentation of the compensating control); the post-deployment application verification (after a migration is applied to the production database, an automated verification step runs the application's database health check against the new schema, checks the application error rate for the first five minutes against the pre-deployment baseline, and pages the on-call engineer if the error rate increases by more than twenty percent above baseline; the post-deployment verification step must complete successfully before the deployment is marked as successful in the deployment log; a deployment marked as successful before the post-deployment verification completes is a governance gap requiring VP Engineering documentation); and the migration completion audit (after the post-deployment verification confirms the application is operating correctly, the designated reviewer confirms that the migration completed correctly by checking the migration version table in the production database to confirm the migration's status is applied and not pending or error, and by spot-checking a sample of rows in modified tables to confirm the data matches the expected post-migration state).
The migration rollback and recovery model defines the requirements for rollback procedures before migration execution, the rollback decision authority, the execution protocol under production incident conditions, and the recovery validation requirements. The model's scope includes: the pre-execution rollback test requirement (before any migration is applied to the production database, the down migration must be executed against a database restored from the most recent production backup, confirmed to complete without errors, confirmed to restore the schema to its pre-migration state, confirmed to complete within a duration that the application can tolerate as production downtime, and confirmed to leave the application operating correctly against the rolled-back schema; the rollback test result — including the execution duration, the schema state after rollback, and the application health check result — is documented in the migration authorization record; a migration that fails the rollback test is not authorized for production execution until the down migration is corrected and passes the test); the rollback trigger protocol (the rollback decision authority for a migration in progress is the VP Engineering, who is notified by the on-call engineer within fifteen minutes of a migration failure or unexpected extended duration; the rollback trigger criteria are defined in advance: a migration that is still running after twice the estimated execution duration triggers a VP Engineering notification; a migration that completes but whose post-deployment application verification fails triggers an immediate rollback if the rollback procedure has been tested; the rollback decision is made by the VP Engineering with knowledge of the rollback procedure's tested duration and the expected impact of allowing the failing state to continue); the rollback execution procedure (the rollback execution procedure is documented as a runbook with specific commands, estimated duration, and verification steps, stored in a location accessible to the on-call engineer during a production incident — not in the migration file's down function, which requires a migration CLI context, but in the incident response runbook repository accessible without application-layer authentication; the rollback procedure specifies which application version must be deployed simultaneously with the rollback if the migration was part of a coordinated schema + code deployment); and the unrollbackable migration protocol (for migrations that include operations that cannot be reversed without data reconstruction — typically migrations that drop a table or column containing data that was not backed up at migration time — the rollback procedure cannot restore the dropped data; for these migrations, the governance requirement is a data snapshot taken immediately before the migration executes, retained for a minimum of 72 hours after the migration is confirmed successful, and stored in a location accessible for point-in-time recovery if the migration is subsequently determined to have caused data integrity issues).
Enterprise customer data model stability coverage surface
The enterprise customer data model stability coverage surface is the coverage of the cross-service schema impact review model and the schema governance review model across every schema change that modifies columns, tables, or constraints used by services other than the primary application — determined by whether a schema change is reviewed for its impact on every service that reads from the modified table before it is applied to production, whether the cross-service coupling of the production database schema is documented and updated when new services are added, whether the schema governance review periodically audits the cross-service coupling map against the current production service topology to surface new coupling that was introduced without a formal review, and whether the governance record produces documentation that an enterprise security assessment, an SOC 2 audit, or a data processing agreement review can rely on as evidence that the organization's schema changes are authorized, reviewed for production safety, and tested for rollback before they reach the production database.
The enterprise customer data model stability coverage surface is bounded by two models:
The cross-service schema impact review model defines the coupling map maintenance requirements, the impact review process for each category of schema change, and the cross-service compatibility confirmation required before a migration is authorized for production. The model's scope includes: the schema coupling map (a maintained document that lists every table in the production database that is accessed by more than one service, with the services that access each table, the specific columns each service reads or writes, the access mechanism (ORM through application API, direct database connection, read replica, analytics pipeline), and the date the coupling was last verified; the coupling map is updated within thirty days of any new service added to the production infrastructure, any new direct database dependency established by an existing service, or any service decommissioned whose database dependencies are removed; the coupling map is reviewed at the quarterly governance review against the production service topology to identify coupling that may have been established without updating the map — the third failure story's audit export service was a direct database consumer that did not appear in any coupling map because no coupling map existed); the column-impacting migration impact review (before any migration that renames, removes, or changes the type of a column in a table with cross-service dependencies, the designated reviewer confirms with the owner or maintainer of every dependent service that the service has been updated to handle the post-migration schema state; the confirmation is documented in the migration authorization record; a migration that modifies a shared column without confirmation from every dependent service is not authorized for production execution; for services whose owner or maintainer is not available or whose service has become unmaintained, the designated reviewer is required to read the service's codebase and audit its database queries directly before authorizing the migration); the additive migration impact review (a migration that adds a column to a shared table without removing anything does not require cross-service compatibility confirmation, because additive changes do not break services that do not reference the new column; however, additive migrations that add NOT NULL columns with no default require the same cross-service review as column-modifying migrations, because an application instance that is not yet updated to provide the new required column will fail on INSERT and UPDATE operations that touch the table); and the shared table migration freeze (before a migration that modifies a table in the coupling map is applied to production, the designated reviewer confirms that no other migrations touching the same table are pending in the migration queue; migrations that touch a shared table in sequence without coordination can produce cascading cross-service failures where the first migration's impact review assumed the second migration's changes were not present, and the second migration's impact review assumed the first migration was already applied).
The schema governance review model defines the quarterly review structure that keeps the coupling map current, the migration authorization process operating correctly, and the governance record producing documentation that external reviews can rely on. The quarterly review covers: the coupling map currency confirmation (the designated reviewer audits the production database's query logs for the most recent thirty days, extracts the distinct service accounts that have issued queries against each table in the coupling map, and compares the result against the coupling map's service list; a service account that appears in the query logs as accessing a table but does not appear in the coupling map for that table is a new coupling that was established without a formal review — the reviewer identifies the service and the specific queries it issues, determines whether the coupling creates a risk for future migrations to that table, and updates the coupling map to include the new coupling; the third failure story's audit export service would have appeared in this audit because its service account issued queries against compliance_controls over the previous eighteen months); the migration authorization record completeness review (the designated reviewer confirms that every migration applied to the production database since the last quarterly review has a corresponding authorization record with the designated reviewer's approval, the review checklist completion, and the rollback test result; a migration in the production database's migration history table that does not have a corresponding authorization record is a governance gap requiring VP Engineering documentation of the circumstances); the rollback test coverage review (the designated reviewer confirms that the rollback test has been completed for every migration applied since the last quarterly review; a migration with no rollback test result in its authorization record is a gap requiring a retrospective rollback test against the current production database state to confirm that the down migration would still execute correctly if needed); and the migration incident review (the designated reviewer reviews all production incidents since the last quarterly review that were attributed to schema migrations, confirms that each incident has a post-incident governance finding, and confirms that the process changes identified in each finding have been implemented; the migration incident log is updated with any new incidents and their governance findings). The annual review covers: the full coupling map calibration (the VP Engineering and the designated reviewer commission an independent audit of every service's database access patterns — not from the services' self-reported documentation but from the production database's query logs and the production network's connection logs — to identify direct database consumers that are not in the coupling map; the annual calibration specifically targets the categories of database consumers most likely to be undocumented: contractor-built services deployed before the coupling map was established, analytics pipelines added by the data team that query production read replicas, and monitoring agents that issue schema queries against the production database); the cross-program integration review with the audit trail governance model (the audit trail's coverage for database schema change events is confirmed to include every migration applied to the production database, with the reviewer's identity, the migration's classification, and the authorization record reference; a migration in the production database's history table that does not have a corresponding audit log entry is a gap in the evidence chain that an SOC 2 auditor or enterprise security assessment will identify when requesting documentation of database change authorization); and the enterprise documentation update (the annual review produces the updated schema change authorization record for the past twelve months, the current coupling map, and the migration incident log, maintained in the format required for enterprise security assessments and SOC 2 audits; the documentation package is verified against the production database's migration history and the production service topology before the annual review closes, so that the company's self-representation to enterprise customers and auditors reflects the current state of the production system).
These two structural properties address different schema governance gaps: the data integrity accountability ceiling governs whether a named authority with database operations knowledge reviewed the migration for production safety rather than only correctness, whether the rollback procedure was tested before the migration was applied, and whether the post-deployment verification confirmed the application is operating correctly against the new schema; while the enterprise customer data model stability coverage surface governs whether every service that reads from the modified schema was identified and confirmed compatible before the migration was applied, whether the cross-service coupling map is maintained and reviewed for new coupling introduced without formal review, and whether the governance record produces documentation that an enterprise security assessment, an SOC 2 audit, or a data processing agreement review can rely on as evidence of the organization's schema change governance posture.
The five ADR sections in the engineering database schema change governance decision record
An engineering database schema change governance decision record covers five decisions. Each has a named owner and a review cadence.
ADR section 1: schema change authorization model
The schema change authorization model names the designated authority responsible for approving schema migrations for production execution and the review criteria the authorization requires. The model's scope includes: the authority designation (a designated senior engineer with production database operations experience is the standard migration reviewer; migrations that perform destructive operations or modify tables with more than 10 million rows require VP Engineering approval; the authority designation is reviewed annually and updated within thirty days of team changes that affect the designated reviewer); the review checklist (the production safety criteria the reviewer must evaluate: lock acquisition and duration estimate for large-table DDL operations, destructive operation identification and confirmation of intentionality, ORM-generated migration review for unintended operations, backfill duration estimate based on production row count, and down migration test confirmation; the checklist is updated when new categories of migration risk are identified through post-incident review); the authorization record format (migration identifier, reviewer name and approval timestamp, checklist completion, operation classification, any conditions or notes, and cross-service impact review status; the authorization record is maintained in the team's governance documentation system rather than only in the migration file's comments, so that it survives migration file deletions and can be searched independently of the version control history); and the ad hoc schema change prohibition (DDL privileges on the production database are restricted to the migration execution service account; direct DDL execution by human database users outside the authorized migration pipeline requires VP Engineering approval, is documented in the emergency change log, and is committed to the migration version control history within twenty-four hours).
ADR section 2: migration execution and verification model
The migration execution and verification model defines the deployment sequence, the pre-execution environment checks, and the post-deployment verification steps. The model's scope includes: the deployment sequencing requirement (additive migrations precede the application code that requires the new column; destructive migrations follow the application code removal of the column reference; the sequence is planned and documented before any environment applies the migration; rolling deployments that include both a migration and an application code change must be sequenced so that every running application instance is compatible with both the pre-migration and post-migration schema during the transition window); the pre-execution environment check (production row count for every modified table, current query rate, open long-running transactions, and release freeze status; a migration that fails the pre-execution check is deferred unless the VP Engineering explicitly approves it with compensating control documentation); the post-deployment application verification (automated health check against the new schema immediately after migration execution, error rate monitoring for five minutes against pre-deployment baseline, on-call page if error rate increases by more than twenty percent; deployment marked successful only after verification passes); and the migration completion audit (migration version table confirmation of applied status, spot-check of modified table rows against expected post-migration state, documented in the authorization record as completion confirmation).
ADR section 3: migration rollback and recovery model
The migration rollback and recovery model defines the rollback testing requirements, the rollback decision authority, and the execution protocol under production incident conditions. The model's scope includes: the pre-execution rollback test requirement (down migration executed against a production-scale backup, confirmed to complete within acceptable downtime tolerance, confirmed to restore schema to pre-migration state, confirmed to leave the application operating correctly; rollback test result — execution duration, schema state, application health — documented in the authorization record; migration is not authorized for production execution if rollback test fails or is not completed); the rollback trigger protocol (VP Engineering notified within fifteen minutes of a migration failure or duration exceeding twice the estimate; rollback trigger criteria defined in the migration authorization record before the migration is applied; rollback decision made by VP Engineering with knowledge of tested rollback duration); the rollback execution runbook (step-by-step procedure with specific commands, estimated duration, and verification steps, stored in the incident response runbook repository accessible without application-layer authentication; specifies the application version that must be deployed simultaneously if the migration was part of a coordinated schema + code deployment); and the unrollbackable migration protocol (for migrations that cannot be reversed without data reconstruction, a data snapshot taken immediately before execution, retained for 72 hours after confirmed success, stored for point-in-time recovery).
ADR section 4: cross-service schema impact review model
The cross-service schema impact review model defines the coupling map maintenance requirements and the impact review process for each category of schema change. The model's scope includes: the schema coupling map (maintained document listing every table accessed by more than one service, with services, specific columns, access mechanism, and last verification date; updated within thirty days of new service additions, new direct database dependencies, or service decommissions; reviewed at the quarterly governance review against production query logs to surface undocumented coupling); the column-impacting migration impact review (before any migration that renames, removes, or changes the type of a column in a shared table, confirmation from every dependent service's owner or maintainer that the service has been updated to handle the post-migration schema; confirmation documented in the authorization record; migrations to shared columns without confirmation from all dependent services are not authorized for production; for unmaintained services, the designated reviewer audits the codebase directly); the additive migration impact review (additive migrations with no default require cross-service review equivalent to column-modifying migrations; additive migrations with defaults or nullable columns do not require cross-service confirmation); and the shared table migration freeze (no pending migrations to the same shared table in the queue at the time of migration authorization; queued migrations to a shared table must be sequenced and their combined impact reviewed before either is authorized for production).
ADR section 5: schema governance review model
The schema governance review model defines the quarterly and annual review structure that keeps the coupling map current and the authorization process operating correctly. The quarterly review covers: the coupling map currency confirmation (query log audit identifying service accounts issuing queries against shared tables and comparing against coupling map; undocumented coupling is catalogued, the service's queries are audited, and the coupling map is updated); the migration authorization record completeness review (every migration in the production migration history has a corresponding authorization record; gaps require VP Engineering documentation); the rollback test coverage review (every migration applied since the last quarterly review has a rollback test result; gaps require retrospective rollback testing against the current database state); and the migration incident review (incidents attributed to schema migrations have post-incident governance findings; process changes identified in findings have been implemented; migration incident log updated). The annual review covers: the full coupling map calibration (independent audit of database access patterns from production query logs and network connection logs, targeting contractor-built services, analytics pipelines on read replicas, and monitoring agents not represented in the coupling map); the cross-program integration review with the audit trail governance model (audit log coverage for every migration applied to the production database with reviewer identity, classification, and authorization record reference); and the enterprise documentation update (schema change authorization record for the past twelve months, current coupling map, and migration incident log, verified against the production database before the annual review closes).
Where engineering database schema change governance decisions end up
The first failure story's outcome — a production degradation lasting over ninety minutes, three enterprise post-mortem demands, and a contract renewal condition — is not the consequence of a team that was careless about schema changes or indifferent to production safety. The migration was reviewed for correctness; the ORM-generated migration was understood by the developer; the new application code was deployed and operating correctly. The governance gap was structural: the migration review process evaluated the migration against the services whose database dependencies the reviewing team knew about, and the report delivery background job service's direct database dependency was invisible to everyone involved because it was in a separate repository and had never been documented in a cross-service coupling map. The organization's migration governance model had a correctness review but not a coverage review — it confirmed that the reviewed services handled the new schema correctly, but it had no mechanism to surface the services that were not reviewed because no one knew they existed.
The founding engineering database schema change governance decisions — which authority has the mandate to review schema migrations for production safety rather than only correctness, how the rollback procedure is tested before the migration is applied rather than improvised under incident pressure, what the cross-service coupling map is and how it is kept current as new services and new direct database dependencies are added, and how the governance model is reviewed periodically to surface coupling that was established without formal review — are made once and determine the organization's data integrity accountability and enterprise schema stability capacity for every migration incident, every enterprise security assessment, and every SOC 2 audit that follows. Those decisions are most often made by omission: through the assumption that migrations that pass code review and CI tests are production-safe, that the rollback is always possible by running the down migration script whose correctness was never verified against production data volumes, that only the primary application reads from the production database, or that a column rename is an internal implementation change that cannot affect services other than the one being updated. WhyChose surfaces those decisions from the conversations where they were made — the architecture session where the report delivery service was designed as a background job with direct database access and the question of what would happen when the main application's schema evolved was noted as a future concern without reaching a governance decision, the sprint planning session where the NOT NULL constraint migration was sized against the staging database's row count without anyone checking the production table size, and the SOC 2 readiness assessment where the migration authorization process was listed as covered by the standard code review requirement without a named authority being designated as the reviewer specifically accountable for production safety rather than correctness.
The engineering SaaS data breach response governance decision record intersects with the database schema change governance record at the data destruction boundary: a migration that drops a table or column containing personal data, without a data snapshot taken immediately before execution, may leave the organization unable to determine whether the dropped data included personal data subject to GDPR notification obligations — not because the organization chose to delete the data, but because the migration's scope was reviewed for schema correctness and not for the data destruction consequences under the data breach response model's incident trigger criteria. The governance model for schema changes must include a data category review for destructive operations — a migration that drops a column in a table containing personal data must confirm before execution whether the data in that column has been archived, whether the deletion is intentional and compliant with the data retention schedule, and whether the deletion requires a GDPR record of processing update — calibrated with the breach response model's deletion-as-breach determination before the first destructive migration is applied to a production database containing personal data.