Skip to content

SQL vocabulary: Identifier, QualifiedName, SchemaSql with no hole for a string #23

Closed

Description

@CaffeinatedCoder

Added 2026-11-11, from spike B (#17). SchemaSql appends the provider's statement terminator (ISqlGenerationHelper.StatementTerminator) to every statement itself. EF runs a SqlOperation as it is: a statement without one passed migrations add, database update, a bundle and Migrate(), and both generated scripts failed to apply (42601). Done when also: a generated script and an idempotent script are applied to an empty database, the second one twice.


Part of preview.1. Plan, section 3.8; design, section 9.6.

Change

  • Identifier, QualifiedName, TableRef, SqlName, SqlOperator, SqlFragment, made only by the dialect or the resolver; SchemaSql and its interpolated-string handler with no AppendFormatted(string).
  • Every drop and rename is schema-qualified. The prototype's DROP INDEX IF EXISTS "ix" resolves through search_path and can remove another schema's index.
  • No IF EXISTS on a drop, no DROP CONSTRAINT IF EXISTS before an ADD.
  • ISchemaDescriptor.Scope is a closed Table | Schema | Database.

Done when

The E probes (E1 to E4) hold against the real assembly, and a test with tenant.ix and public.ix drops the right one on a live server.

Activity

  1. added this to the 11.0.0 milestone on Nov 11, 2026
  2. added
    enhancement
    package/core
    area/migrations
    on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/migrationsenhancementpackage/core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions