Devops For Databases Pdf [upd] Guide
"We need to treat the database schema like we treat our Terraform code. The source of truth isn't a folder of migration scripts numbered 001_to_099 . The source of truth is the desired state of the database."
"It's not forever if it breaks every time we push code," she snapped. "We treat our app servers like cattle, but we treat the database like a haunted heirloom. We have no version control for the state of the data, only the schema."
"No," Lena said, setting it down. "I'm going to solve it with what's in the document." devops for databases pdf
"But... print me that PDF. I want to read Chapter 11 again. The zero-downtime part."
"I know."
She scrolled to Chapter 3: Declarative vs. Imperative Migrations .
Marcus didn't look up from his terminal. He was running a diff on two .sql files. "Talk is cheap, Lena. SQL is forever." "We need to treat the database schema like
She knew where the cart was. It was lost in a migration hell between what Jenkins thought was deployed and what the DBA, old Marcus, had actually fixed by hand at 2 AM last Tuesday.