Skip to content

Bring drizzle-kit fork to v1 RC - #26

Draft
joe-thom wants to merge 1555 commits into
mainfrom
joe-thom/drizzle-kit-v1-compat
Draft

Bring drizzle-kit fork to v1 RC#26
joe-thom wants to merge 1555 commits into
mainfrom
joe-thom/drizzle-kit-v1-compat

Conversation

@joe-thom

@joe-thom joe-thom commented May 6, 2026

Copy link
Copy Markdown

Why

  • Move Replit's forked drizzle-kit package to the upstream v1 RC.
  • Preserve the pid2 API that prepares deployment databases.
  • Keep the query-concurrency limit for large PostgreSQL schemas.

References CLO2-222
Project: DB Sprint

What changed

  • Restored the internal @drizzle-team/drizzle-kit package name and publish command.
  • Added a ./api compatibility export for pid2.
  • Built api.js, api.mjs, and type declarations with the v1 dialect API files.
  • Added tests for the compatibility API, concurrency limit, and legacy empty target schema.

Test plan

  • nix shell nixpkgs#nodejs_24 nixpkgs#pnpm nixpkgs#bun -c pnpm --dir drizzle-kit exec vitest run tests/api.test.ts
  • nix shell nixpkgs#nodejs_24 nixpkgs#pnpm nixpkgs#bun -c pnpm --filter @drizzle-team/drizzle-kit test:types
  • nix shell nixpkgs#nodejs_24 nixpkgs#pnpm nixpkgs#bun -c pnpm lint
  • nix shell nixpkgs#nodejs_24 nixpkgs#pnpm nixpkgs#bun -c pnpm --filter @drizzle-team/drizzle-kit build

Revertibility

A revert is safe. This PR contains no migration or persistent data change.

Stack

~ written by Zerg 👾 (wp-cc5da088)
Linear project: DB Sprint

Sukairo-02 and others added 30 commits November 25, 2025 21:01
- Added string modes for SingleStore, PostgreSQL, MySQL bigint columns  
- Added getColumns util function to get columns\selected fields from tables, views and subqueries  

---------

Co-authored-by: Roman Nabukhotnyi <97584054+RomanNabukhotnyi@users.noreply.github.com>
Co-authored-by: Andrii Sherman <andreysherman11@gmail.com>
Co-authored-by: Dan Kochetov <danil.kochetov@gmail.com>
Co-authored-by: Angelelz <34462576+Angelelz@users.noreply.github.com>
… in cockroach, mssql sessions, fixed broken test cases
Harry Solovay and others added 16 commits April 28, 2026 18:43
* Updated to Effect V4

---------

Co-authored-by: Dan van der Merwe <danieljmerwe@gmail.com>
Co-authored-by: Sergey Reka <71607800+Sukairo-02@users.noreply.github.com>
Co-authored-by: AndriiSherman <andreysherman11@gmail.com>
Co-authored-by: Sukairo-02 <sreka9056@gmail.com>
* Updated Netlify-related changelog, removed dependency

---------

Co-authored-by: AndriiSherman <andreysherman11@gmail.com>
Co-authored-by: Eduardo Bouças <mail@eduardoboucas.com>
- Disabled default codec type selectors for custom columns (fixes [BUG]:[1.0.0-rc.1] customType auto-resolves "geometry" codec from dataType, breaks for non-Point PostGIS columns drizzle-team#5711)
- Сallback type overload to codec selector
- Extended list of postgis types for codecs (improvement for [BUG]:[1.0.0-rc.1] customType auto-resolves "geometry" codec from dataType, breaks for non-Point PostGIS columns drizzle-team#5711)
- Updated codecs: geometry -> geometry(point), geometry:tuple -> geometry(point):tuple
- Switched PG transactions from class properties back to class methods (fixes [BUG]: [1.0.0.rc1] 
- PgAsyncDatabase.transaction is defined as an instance field rather than an instance method drizzle-team#5709)
- Updated AWS Data Api codecs, removed query typings, improved input param mapping
- Removed prepared query typings field from all builders
- Added column argument to CastParam,CastArrayParam codecs

---------

Co-authored-by: AndriiSherman <andreysherman11@gmail.com>
Co-authored-by: RomanNabukhotnyi <nabukhotnyiroman@gmail.com>

joe-thom commented May 6, 2026

Copy link
Copy Markdown
Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@joe-thom joe-thom changed the title [MsSql] initial implementation Bring drizzle-kit fork to v1 RC May 6, 2026
@joe-thom joe-thom added zergling-authored Authored by a Zerg zergling and removed zergling-authored Authored by a Zerg zergling labels May 6, 2026
@joe-thom joe-thom added the zergling-authored Authored by a Zerg zergling label Aug 27, 2026
…v1-compat

# Conflicts:
#	drizzle-kit/src/api.ts
#	drizzle-kit/src/cli/commands/migrate.ts
#	drizzle-kit/src/cli/commands/pgPushUtils.ts
#	drizzle-kit/src/serializer/pgSerializer.ts
#	drizzle-kit/tests/pg-tables.test.ts

@github-advanced-security github-advanced-security AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

@wiz-a44d115bc1

Copy link
Copy Markdown

Wiz Scan Summary

⚠️ Many findings detected
Many findings were detected, but only a subset of the findings are displayed inline due to API constraints. To view all findings inline, please click here.
Scanner Findings
Vulnerability Finding Vulnerabilities 1 High 4 Medium
Data Finding Sensitive Data -
Secret Finding Secrets 20 Low
IaC Misconfiguration IaC Misconfigurations 14 Low
SAST Finding SAST Findings 139 Medium 18 Low
Software Management Finding Software Management Findings -
Total 1 High 143 Medium 52 Low

View scan details in Wiz

To detect these findings earlier in the dev lifecycle, try the Wiz Code extension for VS Code, JetBrains, or Visual Studio.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

zergling-authored Authored by a Zerg zergling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants