Skip to content
cccskills
FreePublished on GitHub

database-migrations

Change persistent models and SQLite/PostgreSQL migrations without breaking existing servers.

The English summary is being prepared. Showing the original description.

Works withPostgreSQL
See how to install

Files included (3)

  • SKILL.md2.2 KB
  • agents/openai.yaml259 B
  • references/migration-workflow.md322 B

SKILL.md (original)

Review the instructions the agent will receive before you install.

Persistence is server-only compatibility work.

Workflow

  1. Find the owning database project and both provider conventions.
  2. Update the model deliberately.
  3. Consider existing rows, nullability, defaults, indexes, uniqueness, and backfills.
  4. Generate matching SQLite and PostgreSQL migrations.
  5. Review generated operations and snapshots.
  6. Test upgrading an existing database, not only creating a new one.
  7. Keep database I/O off frequent gameplay paths.

Do not use database entities as gameplay components or shared transport types. Avoid destructive schema changes unless data loss is explicitly accepted.

Report when migrations were generated but not exercised against both providers.

Provider versions in effect

Central package versions live in Directory.Packages.props; do not assume an older major version from prior work. Both providers are in use, and their majors change behavior independently.

  • EF Core and Microsoft.EntityFrameworkCore.Sqlite.Core are on 10.x, Npgsql.EntityFrameworkCore.PostgreSQL on its own matching major. Confirm the current numbers before writing provider-specific code.
  • EF Core 10 changes several defaults that can silently alter a migration: parameterized collections now use multiple scalar parameters instead of a JSON array, complex-type column names are uniquified, nested complex properties use a full path in the column name, and SQL parameter names are simplified.
  • EF Core 10 also changes ExecuteUpdateAsync to accept a regular lambda, which breaks hand-built expression trees.
  • Microsoft.Data.Sqlite 10 assumes UTC: GetDateTimeOffset on a value without an offset treats it as UTC, GetDateTime with an offset returns UTC, and writing a DateTimeOffset into a REAL column converts to UTC first.
  • EF tools now require --framework for multi-targeted projects.

Because existing servers keep their old schema, a migration that is correct for a fresh database can still fail on upgrade. Review the generated Up/Down operations and the snapshot, and confirm SQLite and PostgreSQL outputs separately.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Implement actions, cooldowns, DoAfter flows, interruption, cancellation, and authoritative completion safely.

The English summary is being prepared. Showing the original description.

ArcaneSS14/arcane-new5Updated Oct 19, 2026

Implement privileged commands, admin UI, role checks, audit logs, and safe operational controls.

The English summary is being prepared. Showing the original description.

ArcaneSS14/arcane-new5Updated Oct 19, 2026

Plan, verify, implement, and deliver repository work through evidence-backed ownership and quality gates.

The English summary is being prepared. Showing the original description.

ArcaneSS14/arcane-new5Updated Oct 19, 2026

Implement replicated appearance data, GenericVisualizer mappings, sprite layers, overlays, and client visual systems.

The English summary is being prepared. Showing the original description.

ArcaneSS14/arcane-new5Updated Oct 19, 2026

atmos

Free

Modify atmos simulation, gases, fire, pressure, pipes, devices, UI, and hot paths safely.

The English summary is being prepared. Showing the original description.

ArcaneSS14/arcane-new5Updated Oct 19, 2026

audio

Free

Add data-driven audio with correct prediction, audience, resources, attribution, and verification.

The English summary is being prepared. Showing the original description.

ArcaneSS14/arcane-new5Updated Oct 19, 2026

See all skills by ArcaneSS14

Report a problem with this skill