knobit.org

Recognises greenfield DDL aimed at a populated database

edu:Knobit

https://knobit.org/id/knobit/K-822

Also as Turtle · JSON-LD · RDF/XML · AI benchmark on Skilirium

Context functionsResult evaluation
Knobit creation methodsAI generated, human edited
Knobit typesSkill
LCG purposesAssessing the learner's knowledge or skill state
LCG purposesSelecting an assessment task or learning activity
action verbRecognises en
applies knowledgeExplains schema migration and rollback
assessment criterionFlags the deficient case and passes the acceptable one. Deficient: `account_number` tightened to `NOT NULL` in the model and the regenerated DDL given to the release; 3 % of migrated accounts have no IBAN, the deploy fails halfway, and the schema is left with half its constraints applied Acceptable: The regenerated DDL diffed against the previous version as the statement of intent, and the migration hand-written for that diff where deployment lives (Flyway, Liquibase, dbt, Alembic) with backfill and rollback — then verified by rebuilding an empty database from the generated DDL and comparing it with the migrated one en
assessment methodskill-tests task: Generated DDL review, Postgres and Snowflake (DDL review skills) en
dcterms:identifierK-822
dcterms:licensehttps://creativecommons.org/licenses/by/4.0/
dcterms:sourceReview checklist 05-ddl, row 22; Ambler & Sadalage 2006; this skill (08-ddl.md) en
expected resultThe changes needing a backfill and a migration en
rdfs:labelRecognises greenfield DDL aimed at a populated database en
schema:creativeWorkStatusaccepted
schema:isPartOfData modelling (DAMA-DMBOK2)
skos:altLabelGreenfield DDL run against a populated database (generated DDL) en
skos:definition`08-ddl/` handed to a release for an environment that already has data. This output builds a schema from nothing. The changes that look smallest in the diff are the ones that need a backfill plan — a nullable column tightened to `NOT NULL`, a widened or narrowed type, a split column — and on Databricks `ALTER TABLE ... ADD CONSTRAINT` validates the existing rows and fails on the first violation. en
skos:prefLabelRecognises greenfield DDL aimed at a populated database en
target objectgenerated DDL for a release en

Used by

includes knobitGenerates DDL per target dialect and reviews it against model, engine, data and deployment
requires knobitGenerate and review DDL