Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

migrate ignores NOT NULL → nullable on an existing column, then fails integrity check

Abierto
#109 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
68/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
csharp, postgresql
Área
database

Línea de trabajo

Start with the migration behavior exercised by migrations/schema.yaml and reproduce the change to public.topup.stripe_payment_intent_id against PostgreSQL. Inspect the generated migration plan and integrity check for nullability changes. Done means the normal migrate path applies the NOT NULL relaxation without --allow-destructive and the integrity check passes.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Reproduction

With DataProviderMigrate 0.9.12-beta against an empty Supabase Postgres 15.1.0.117 database:

  1. Run DataProviderMigrate migrate with the current NAP main schema (migrations/schema.yaml). It creates public.topup.stripe_payment_intent_id as Text, isNullable: false.
  2. Change only that column declaration to nullable (type: Text, with no isNullable: false) and run migrate again without --allow-destructive.

The second invocation reports Migration completed successfully, then exits nonzero:

SCHEMA INTEGRITY CHECK FAILED
public.topup.stripe_payment_intent_id: nullability expected NULL but found NOT NULL

The table is empty. The plan contains no ALTER COLUMN ... DROP NOT NULL equivalent. This blocks NAP's additive Stripe Checkout migration: a PaymentIntent ID does not exist when the pending Checkout row is inserted and must become nullable before the code deploys.

Expected

Relaxing NOT NULL should be classified as additive and applied by the normal migrate path, then pass integrity verification. No raw SQL or destructive migration should be required. This is independent of the existing missing-FK-on-ALTER issue #79/#80, which also appears when the Stripe schema adds a tenant FK to an existing table.

Lenguaje dominante
C#
Estrellas
67
Forks
4
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Nimblesite/DataProvider

Todos los issues de Nimblesite/DataProvider

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.