Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Dec 3, 2024

This PR contains the following updates:

Package Change Age Confidence
drizzle-kit (source) ^0.28.0^0.31.0 age confidence

Release Notes

drizzle-team/drizzle-orm (drizzle-kit)

v0.31.9

Compare Source

  • drizzle-kit api improvements for D1 connections

v0.31.8

Compare Source

Bug fixes
  • Fixed algorythm => algorithm typo.
  • Fixed external dependencies in build configuration.

v0.31.7: [email protected]

Compare Source

Bug fixes

v0.31.6

Compare Source

Bug fixes

v0.31.5

Compare Source

  • Add casing support to studio configuration and related functions

v0.31.4

Compare Source

  • Fixed halfvec, bit and sparsevec type generation bug in drizzle-kit

v0.31.3

Compare Source

  • Internal changes to Studio context. Added databaseName and packageName properties for Studio

v0.31.2

Compare Source

Bug fixes
  • Fixed relations extraction to not interfere with Drizzle Studio.

v0.31.1

Compare Source

Fixed drizzle-kit pull bugs when using Gel extensions.

Because Gel extensions create schema names containing :: (for example, ext::auth), Drizzle previously handled these names incorrectly. Starting with this release, you can use Gel extensions without any problems. Here’s what you should do:

  1. Enable extensions schemas in drizzle.config.ts
import  { defineConfig } from "drizzle-kit";

export default defineConfig({
  dialect: 'gel',
  schemaFilter: ['ext::auth', 'public']
});
  1. Run drizzle-kit pull

  2. Done!

v0.31.0

Compare Source

Features and improvements

Enum DDL improvements

For situations where you drop an enum value or reorder values in an enum, there is no native way to do this in PostgreSQL. To handle these cases, drizzle-kit used to:

  • Change the column data types from the enum to text
  • Drop the old enum
  • Add the new enum
  • Change the column data types back to the new enum

However, there were a few scenarios that weren’t covered: PostgreSQL wasn’t updating default expressions for columns when their data types changed

Therefore, for cases where you either change a column’s data type from an enum to some other type, drop an enum value, or reorder enum values, we now do the following:

  • Change the column data types from the enum to text
  • Set the default using the ::text expression
  • Drop the old enum
  • Add the new enum
  • Change the column data types back to the new enum
  • Set the default using the ::<new_enum> expression
esbuild version upgrade

For drizzle-kit we upgraded the version to latest (0.25.2), thanks @​paulmarsicloud

Bug fixes

v0.30.6

Compare Source

Bug fixes

v0.30.5

Compare Source

New Features

Added Gel dialect support and gel-js client support

Drizzle is getting a new Gel dialect with its own types and Gel-specific logic. In this first iteration, almost all query-building features have been copied from the PostgreSQL dialect since Gel is fully PostgreSQL-compatible. The only change in this iteration is the data types. The Gel dialect has a different set of available data types, and all mappings for these types have been designed to avoid any extra conversions on Drizzle's side. This means you will insert and select exactly the same data as supported by the Gel protocol.

Drizzle + Gel integration will work only through drizzle-kit pull. Drizzle won't support generate, migrate, or push features in this case. Instead, drizzle-kit is used solely to pull the Drizzle schema from the Gel database, which can then be used in your drizzle-orm queries.

The Gel + Drizzle workflow:

  1. Use the gel CLI to manage your schema.
  2. Use the gel CLI to generate and apply migrations to the database.
  3. Use drizzle-kit to pull the Gel database schema into a Drizzle schema.
  4. Use drizzle-orm with gel-js to query the Gel database.

On the drizzle-kit side you can now use dialect: "gel"

// drizzle.config.ts
import { defineConfig } from 'drizzle-kit';

export default defineConfig({
  dialect: 'gel',
});

For a complete Get Started tutorial you can use our new guides:

v0.30.4

Compare Source

  • Fix bug that generates incorrect syntax when introspect in mysql
  • Fix a bug that caused incorrect syntax output when introspect in unsigned columns

v0.30.3

Compare Source

SingleStore push and generate improvements

As SingleStore did not support certain DDL statements before this release, you might encounter an error indicating that some schema changes cannot be applied due to a database issue. Starting from this version, drizzle-kit will detect such cases and initiate table recreation with data transfer between the tables

Bug fixes

v0.30.2

Compare Source

v0.30.1

Compare Source

New Features

drizzle-kit export

To make drizzle-kit integration with other migration tools, like Atlas much easier, we've prepared a new command called export. It will translate your drizzle schema in SQL representation(DDL) statements and outputs to the console

// schema.ts
import { pgTable, serial, text } from 'drizzle-orm/pg-core'

export const users = pgTable('users', {
	id: serial('id').primaryKey(),
	email: text('email').notNull(),
	name: text('name')
});

Running

npx drizzle-kit export

will output this string to console

CREATE TABLE "users" (
        "id" serial PRIMARY KEY NOT NULL,
        "email" text NOT NULL,
        "name" text
);

By default, the only option for now is --sql, so the output format will be SQL DDL statements. In the future, we will support additional output formats to accommodate more migration tools

npx drizzle-kit export --sql

v0.30.0

Compare Source

Starting from this update, the PostgreSQL dialect will align with the behavior of all other dialects. It will no longer include IF NOT EXISTS, $DO, or similar statements, which could cause incorrect DDL statements to not fail when an object already exists in the database and should actually fail.

This change marks our first step toward several major upgrades we are preparing:

  • An updated and improved migration workflow featuring commutative migrations, a revised folder structure, and enhanced collaboration capabilities for migrations.
  • Better support for Xata migrations.
  • Compatibility with CockroachDB (achieving full compatibility will only require removing serial fields from the migration folder).

v0.29.1

Compare Source

  • Fix SingleStore generate migrations command

v0.29.0

Compare Source

New Dialects

🎉 SingleStore dialect is now available in Drizzle

Thanks to the SingleStore team for creating a PR with all the necessary changes to support the MySQL-compatible part of SingleStore. You can already start using it with Drizzle. The SingleStore team will also help us iterate through updates and make more SingleStore-specific features available in Drizzle

import 'dotenv/config';
import { defineConfig } from 'drizzle-kit';

export default defineConfig({
  dialect: 'singlestore',
  out: './drizzle',
  schema: './src/db/schema.ts',
  dbCredentials: {
    url: process.env.DATABASE_URL!,
  },
});

You can check out our Getting started guides to try SingleStore!

New Drivers

🎉 SQLite Durable Objects driver is now available in Drizzle

You can now query SQLite Durable Objects in Drizzle!

For the full example, please check our Get Started Section

import 'dotenv/config';
import { defineConfig } from 'drizzle-kit';
export default defineConfig({
  out: './drizzle',
  schema: './src/db/schema.ts',
  dialect: 'sqlite',
  driver: 'durable-sqlite',
});

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot changed the title chore(deps): update dependency drizzle-kit to ^0.29.0 chore(deps): update dependency drizzle-kit to ^0.30.0 Dec 9, 2024
@renovate renovate bot force-pushed the renovate/drizzle-kit-0.x branch from 69fac3e to 7400176 Compare December 9, 2024 13:51
@renovate renovate bot changed the title chore(deps): update dependency drizzle-kit to ^0.30.0 chore(deps): update dependency drizzle-kit to ^0.31.0 Apr 15, 2025
@renovate renovate bot force-pushed the renovate/drizzle-kit-0.x branch from 7400176 to ecaef12 Compare April 15, 2025 19:32
@renovate renovate bot force-pushed the renovate/drizzle-kit-0.x branch 2 times, most recently from e1caac3 to 35f0dbc Compare August 13, 2025 15:37
@renovate renovate bot force-pushed the renovate/drizzle-kit-0.x branch 2 times, most recently from 0ccfc55 to 8d97e06 Compare September 26, 2025 17:04
@renovate renovate bot force-pushed the renovate/drizzle-kit-0.x branch from 8d97e06 to c2d8bcb Compare October 21, 2025 10:55
@renovate renovate bot force-pushed the renovate/drizzle-kit-0.x branch from c2d8bcb to 63adaaf Compare October 28, 2025 22:02
@renovate renovate bot force-pushed the renovate/drizzle-kit-0.x branch 2 times, most recently from 031a6c4 to 2305878 Compare November 13, 2025 22:01
@renovate renovate bot force-pushed the renovate/drizzle-kit-0.x branch from 2305878 to bd81ff3 Compare December 4, 2025 17:38
@renovate renovate bot force-pushed the renovate/drizzle-kit-0.x branch from bd81ff3 to 706455c Compare February 9, 2026 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants