SShortSingh.
Back to feed

Draw Cloudflare D1 Schemas From the Remote Database, Not the Local File

0
·2 views

A guide on Cloudflare's D1 database explains that a project's schema can exist in three places: migration files, a local SQLite file, and the deployed database. Running wrangler d1 migrations apply without the --remote flag writes changes only to the local file, so the two can silently diverge. In the author's test with wrangler 4.151.3, the local file had a table that production lacked, while production had an index missing locally. The author argues that a schema diagram should reflect the remote database, since that represents what is live, while the local file only shows what a branch is about to ship. A SQL export is accurate only as of the moment it was taken.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Over 1.97 Million Websites Use Next.js, Tracker Says, Yet Few Reveal Their Version

As of November 16, 2026, the webatla tracker counts 1,973,502 websites running Next.js, about 0.61% of the 325.8 million sites it monitors. Only around 750 of those sites expose which release they run, so detection shows the framework's presence rather than its version. Common markers such as /_next/static/ asset paths and the X-Powered-By header can reveal Next.js, but configuration options like assetPrefix, basePath, and disabled headers can hide them. Inside the static site generator category, Next.js accounts for 56.6% of sites. The article stresses that these signals are not definitive proof, since teams can remove or alter each one.

0
ProgrammingDEV Community ·

How to Implement Design Tokens in a Tailwind CSS Project

Hardcoded values such as fixed hex colors and pixel sizes scattered across a codebase often lead to color drift, painful rebranding, and mismatches between design and development. Design tokens address this by storing values like colors, spacing, and typography as named variables that act as a single source of truth. The approach typically separates primitive tokens holding raw values from semantic tokens that describe purpose, with optional component-level tokens. Defining these variables in a global CSS file and mapping them into the Tailwind config enables features like dark mode and multi-platform output. The guide recommends starting with a small set of 20-30 tokens, aliasing primitives to semantic names, documenting token purpose, and using identical names in both design tools and code.

0
ProgrammingDEV Community ·

Shipping systemd journald logs to Dynatrace with OneAgent

Linux systemd stores logs in binary journald files that stay on the machine and disappear with it unless they are forwarded elsewhere. The article compares three ways to collect them: third-party agents or syslog forwarding, the OneAgent log module, and the ingestion API. It focuses on the OneAgent log module, which reads the journal through the systemd API and maps fields such as MESSAGE, UNIT and PRIORITY into log attributes. Setup requires OneAgent 1.307 or later plus two separate tenant settings: enabling the Journald log detector and an ingest rule. The author notes that the Managed deployment procedure could not be verified.

0
ProgrammingDEV Community ·

Flutter 3.50 deprecates bundled Material and Cupertino libraries in favor of standalone packages

Flutter 3.50 was released on 11 November alongside Dart 3.14. Its most significant change is structural: the Material and Cupertino libraries bundled with the framework are now formally deprecated. They are being replaced by the standalone material_ui and cupertino_ui packages, which are versioned independently of Flutter. This separation lets design-library updates ship without waiting for framework releases. The migration is largely automated through dart fix and includes a MaterialUiCompatibilityBridge for code that spans both versions, and the deprecation is not a removal, so existing apps will continue to build.