Skip to content

v2.2.0-alpha

Latest

Choose a tag to compare

@slate20 slate20 released this 30 Oct 03:55
· 7 commits to main since this release
ffc50d4

Full Changelog: v2.1.1-alpha...v2.2.0-alpha

Schema files

  • New schemas/schema_{connection}.py files describe a connection's tables in Python. Scribe compares them with the live database; .sql migrations remain the only way the database changes
  • scribe schema init, pull, diff, and status (read-only), plus scribe schema generate to write a migration from the differences. Changes that could lose data are written commented out under -- REVIEW
  • scribe schema apply writes and runs a migration of the additive changes, for connections with "auto_migrate": true
  • scope() limits which tables a schema file covers, for large shared databases
  • See docs/06_SCHEMA_FILES.md

IDE

  • New Schema tab: each table's status against the database, a managed toggle, and Pull / Generate migration / Apply / Run pending migrations. Generated SQL is always previewed before anything is written
  • Schema files appear in the file sidebar; files in nested folders under migrations/ no longer land in a duplicated folder
  • Saving a file now clears its unsaved marker

New projects

  • scribe new myapp now creates a minimal project with no example content to clean up: configuration, a layout, one page, and empty migrations/ and schemas/
  • scribe new myapp --demo creates the starter app from earlier releases (tasks, login, and registration)

Migrations

  • Migrations can run per connection: set "migrations" and "auto_migrate" on each connection in scribe.json, and use --database with scribe db migrate. New scribe db status
  • Each SQLite migration file runs in one transaction, so a failed migration leaves nothing half-applied
  • Startup warns when a PostgreSQL or MSSQL default connection doesn't say whether Scribe may change it, and Scribe won't create migrations for it until it does

Routes and scribe-build

  • New @csrf_exempt route decorator for API endpoints called with a bearer token or from another service (see docs/02_TEMPLATE_SYNTAX.md). Each route handler now has its own name, so the exemption applies only to the decorated route
  • scribe-build compiles a project into a standalone executable (precompiled routes and lib/ helpers, secrets stripped from the bundled scribe.json). It ships as scribe-build-linux and is installed by install.sh

Builds and fixes

  • Linux binaries are built with a standalone Python 3.14 and run on glibc 2.28+ (Debian 10, RHEL 8, Ubuntu 20.04 and newer)
  • scribe --version and scribe-build --version report the right version
  • Unreachable databases give a one-line error instead of a traceback
  • Startup warns when a project's .venv uses a different Python version than Scribe

Install

tar -xzf scribe-v2.2.0-alpha.tar.gz
./install.sh