ThreadCount Community edition

Uniform stock management for healthcare linen rooms: the coordinator app, the phone counter and the staff app, for your own server. Built from a113353 on 2026-09-15. Licensed under the Functional Source License (FSL-1.1-ALv2).
This commit is contained in:
ThreadCount
2026-09-15 22:54:09 +10:00
commit a6f1059ddf
424 changed files with 53535 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
# Print the SQL that would bring the current dev database up to prisma/schema.prisma.
#
# bash scripts/schema-diff.sh > prisma/migrations/<timestamp>_<name>/migration.sql
#
# `prisma migrate dev` is the usual way to do this, but it needs a clean shadow database and the
# local `prisma dev` server's shadow carries residue that makes it fail on the first migration.
# Diffing the live dev database against the schema needs no shadow at all.
set -eu
cd "$(dirname "$0")/.."
set -a
. ./.env
set +a
npx prisma migrate diff \
--from-config-datasource \
--to-schema prisma/schema.prisma \
--script