Ship schema, not demo data: mount raw-schema.sql instead of demo-data.sql
Open-source Excel-native EPM and consolidation for SAP & Dynamics
Brought to you by:
konsolid-at
Originally created by: grynn-in
Part of removing the Contoso/Alpine demo (the Ecolab model will replace it). The konsol half, which removes the demo fixtures, follows in a separate PR.
clickhouse/demo-data.sql is deleted. It held 1 CREATE DATABASE, 14 CREATE TABLE epm_raw.* and 34 INSERTs of synthetic data, including rows in five konsol-owned epm_staging tables. Its credits were also unsigned (#155).clickhouse/raw-schema.sql is new: just the 14 CREATE TABLEs, extracted from the old file. init-db.sql creates none of the epm_raw source tables, so without these every staging model, and the whole dbt build, fails on a missing source.docker-compose.yml: initdb now mounts 02-raw-schema.sql in place of 02-demo-data.sql.raw-schema.sql ran against a throwaway database (epm_raw_ddlcheck_110, dropped afterwards): 14 tables created, and every column list is identical to live epm_raw.trial_balance_submissions, ..._control) come from init-db.sql, so they're unaffected.dbt parse covers the rest in CI.ClickHouse runs initdb only against an empty volume, so existing stacks keep their demo rows until the volume is wiped. That happens with the planned reset.
🤖 Generated with Claude Code
Originally posted by: grynn-in
Pre-merge checks
This repo's CI triggers only on
dbt_project/**, so no automated check ran here. Checked by hand instead:01-init-db.sqland02-raw-schema.sqlboth useCREATE DATABASE IF NOT EXISTS epm_raw, andinit-db.sqlalready creates the two F8 submission tables there. A fresh volume runs both without a collision.raw-schema.sqlran against a throwaway database: 14 tables, and every column list is identical to liveepm_raw.demo-data.sql, and.gitignorenow keeps the generator's output out of the repo.docker-compose.cluster.ymlmounts onlyinit-db.sql, so cluster mode has never had the raw landing tables, demo or not. Adding them there needs a decision on replicated vs local tables per shard.🤖 Generated with Claude Code
Ticket changed by: grynn-in