forked from timothymiller/t4-app
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update dependency drizzle-kit to ^0.30.1 #5
Open
renovate
wants to merge
1
commit into
master
Choose a base branch
from
renovate/drizzle-kit-0.x
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
renovate
bot
changed the title
Update dependency drizzle-kit to ^0.20.6
Update dependency drizzle-kit to ^0.20.7
Dec 19, 2023
renovate
bot
force-pushed
the
renovate/drizzle-kit-0.x
branch
from
December 19, 2023 05:25
37b7361
to
9358dde
Compare
renovate
bot
force-pushed
the
renovate/drizzle-kit-0.x
branch
from
December 26, 2023 08:12
9358dde
to
c0c6d56
Compare
renovate
bot
changed the title
Update dependency drizzle-kit to ^0.20.7
Update dependency drizzle-kit to ^0.20.8
Dec 26, 2023
renovate
bot
force-pushed
the
renovate/drizzle-kit-0.x
branch
from
December 28, 2023 05:43
c0c6d56
to
c56631d
Compare
renovate
bot
changed the title
Update dependency drizzle-kit to ^0.20.8
Update dependency drizzle-kit to ^0.20.9
Dec 28, 2023
renovate
bot
force-pushed
the
renovate/drizzle-kit-0.x
branch
from
January 5, 2024 14:57
c56631d
to
46545ea
Compare
renovate
bot
changed the title
Update dependency drizzle-kit to ^0.20.9
Update dependency drizzle-kit to ^0.20.10
Jan 5, 2024
renovate
bot
force-pushed
the
renovate/drizzle-kit-0.x
branch
from
January 13, 2024 08:46
46545ea
to
dd240f3
Compare
renovate
bot
changed the title
Update dependency drizzle-kit to ^0.20.10
Update dependency drizzle-kit to ^0.20.12
Jan 13, 2024
renovate
bot
force-pushed
the
renovate/drizzle-kit-0.x
branch
from
January 17, 2024 23:32
dd240f3
to
132fcd9
Compare
renovate
bot
changed the title
Update dependency drizzle-kit to ^0.20.12
Update dependency drizzle-kit to ^0.20.13
Jan 17, 2024
renovate
bot
changed the title
Update dependency drizzle-kit to ^0.20.13
Update dependency drizzle-kit to ^0.20.14
Feb 2, 2024
renovate
bot
force-pushed
the
renovate/drizzle-kit-0.x
branch
from
February 2, 2024 08:18
132fcd9
to
03b50a6
Compare
renovate
bot
force-pushed
the
renovate/drizzle-kit-0.x
branch
from
April 20, 2024 17:40
03b50a6
to
38fc8b9
Compare
renovate
bot
changed the title
Update dependency drizzle-kit to ^0.20.14
Update dependency drizzle-kit to ^0.20.16
Apr 20, 2024
renovate
bot
force-pushed
the
renovate/drizzle-kit-0.x
branch
from
April 21, 2024 11:52
38fc8b9
to
c344f0d
Compare
renovate
bot
changed the title
Update dependency drizzle-kit to ^0.20.16
Update dependency drizzle-kit to ^0.20.17
Apr 21, 2024
renovate
bot
force-pushed
the
renovate/drizzle-kit-0.x
branch
from
May 7, 2024 05:50
c344f0d
to
d90e122
Compare
renovate
bot
changed the title
Update dependency drizzle-kit to ^0.20.17
Update dependency drizzle-kit to ^0.20.18
May 7, 2024
renovate
bot
force-pushed
the
renovate/drizzle-kit-0.x
branch
from
May 10, 2024 17:55
d90e122
to
867c128
Compare
renovate
bot
changed the title
Update dependency drizzle-kit to ^0.20.18
Update dependency drizzle-kit to ^0.21.1
May 10, 2024
renovate
bot
force-pushed
the
renovate/drizzle-kit-0.x
branch
from
May 23, 2024 02:41
867c128
to
31ed79b
Compare
renovate
bot
changed the title
Update dependency drizzle-kit to ^0.21.1
Update dependency drizzle-kit to ^0.21.4
May 23, 2024
renovate
bot
force-pushed
the
renovate/drizzle-kit-0.x
branch
from
June 1, 2024 20:40
31ed79b
to
ae561b4
Compare
renovate
bot
changed the title
Update dependency drizzle-kit to ^0.21.4
Update dependency drizzle-kit to ^0.22.1
Jun 1, 2024
renovate
bot
force-pushed
the
renovate/drizzle-kit-0.x
branch
from
June 5, 2024 08:39
ae561b4
to
8439be6
Compare
renovate
bot
changed the title
Update dependency drizzle-kit to ^0.22.1
Update dependency drizzle-kit to ^0.22.2
Jun 5, 2024
renovate
bot
force-pushed
the
renovate/drizzle-kit-0.x
branch
from
June 7, 2024 02:01
8439be6
to
f513c9f
Compare
renovate
bot
changed the title
Update dependency drizzle-kit to ^0.22.2
Update dependency drizzle-kit to ^0.22.4
Jun 7, 2024
renovate
bot
changed the title
Update dependency drizzle-kit to ^0.23.0
Update dependency drizzle-kit to ^0.23.1
Jul 31, 2024
renovate
bot
force-pushed
the
renovate/drizzle-kit-0.x
branch
from
August 5, 2024 17:49
920f298
to
2f86b33
Compare
renovate
bot
changed the title
Update dependency drizzle-kit to ^0.23.1
Update dependency drizzle-kit to ^0.23.2
Aug 5, 2024
renovate
bot
force-pushed
the
renovate/drizzle-kit-0.x
branch
from
August 10, 2024 11:58
2f86b33
to
e0dd4c7
Compare
renovate
bot
changed the title
Update dependency drizzle-kit to ^0.23.2
Update dependency drizzle-kit to ^0.24.0
Aug 10, 2024
renovate
bot
force-pushed
the
renovate/drizzle-kit-0.x
branch
from
August 22, 2024 20:58
e0dd4c7
to
d0db68e
Compare
renovate
bot
changed the title
Update dependency drizzle-kit to ^0.24.0
Update dependency drizzle-kit to ^0.24.1
Aug 22, 2024
renovate
bot
force-pushed
the
renovate/drizzle-kit-0.x
branch
from
August 26, 2024 23:29
d0db68e
to
99f48cd
Compare
renovate
bot
changed the title
Update dependency drizzle-kit to ^0.24.1
Update dependency drizzle-kit to ^0.24.2
Aug 26, 2024
renovate
bot
force-pushed
the
renovate/drizzle-kit-0.x
branch
from
October 8, 2024 05:29
99f48cd
to
f8494b8
Compare
renovate
bot
changed the title
Update dependency drizzle-kit to ^0.24.2
Update dependency drizzle-kit to ^0.25.0
Oct 8, 2024
renovate
bot
force-pushed
the
renovate/drizzle-kit-0.x
branch
from
October 18, 2024 03:00
f8494b8
to
e4abfd4
Compare
renovate
bot
changed the title
Update dependency drizzle-kit to ^0.25.0
Update dependency drizzle-kit to ^0.26.2
Oct 18, 2024
renovate
bot
force-pushed
the
renovate/drizzle-kit-0.x
branch
from
November 1, 2024 05:34
e4abfd4
to
10c0a86
Compare
renovate
bot
changed the title
Update dependency drizzle-kit to ^0.26.2
Update dependency drizzle-kit to ^0.27.0
Nov 1, 2024
renovate
bot
force-pushed
the
renovate/drizzle-kit-0.x
branch
from
November 2, 2024 08:18
10c0a86
to
1179ee2
Compare
renovate
bot
changed the title
Update dependency drizzle-kit to ^0.27.0
Update dependency drizzle-kit to ^0.27.1
Nov 2, 2024
renovate
bot
force-pushed
the
renovate/drizzle-kit-0.x
branch
from
November 7, 2024 02:39
1179ee2
to
6234eb2
Compare
renovate
bot
changed the title
Update dependency drizzle-kit to ^0.27.1
Update dependency drizzle-kit to ^0.28.0
Nov 7, 2024
renovate
bot
force-pushed
the
renovate/drizzle-kit-0.x
branch
from
November 15, 2024 05:38
6234eb2
to
b0295ff
Compare
renovate
bot
changed the title
Update dependency drizzle-kit to ^0.28.0
Update dependency drizzle-kit to ^0.28.1
Nov 15, 2024
renovate
bot
force-pushed
the
renovate/drizzle-kit-0.x
branch
from
December 4, 2024 05:40
b0295ff
to
3dafd54
Compare
renovate
bot
changed the title
Update dependency drizzle-kit to ^0.28.1
Update dependency drizzle-kit to ^0.29.0
Dec 4, 2024
renovate
bot
force-pushed
the
renovate/drizzle-kit-0.x
branch
from
December 6, 2024 09:01
3dafd54
to
4673c8b
Compare
renovate
bot
changed the title
Update dependency drizzle-kit to ^0.29.0
Update dependency drizzle-kit to ^0.29.1
Dec 6, 2024
renovate
bot
force-pushed
the
renovate/drizzle-kit-0.x
branch
from
December 11, 2024 08:55
4673c8b
to
634e293
Compare
renovate
bot
changed the title
Update dependency drizzle-kit to ^0.29.1
Update dependency drizzle-kit to ^0.30.0
Dec 11, 2024
renovate
bot
force-pushed
the
renovate/drizzle-kit-0.x
branch
from
December 14, 2024 02:53
634e293
to
a3672d6
Compare
renovate
bot
changed the title
Update dependency drizzle-kit to ^0.30.0
Update dependency drizzle-kit to ^0.30.1
Dec 14, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
None yet
0 participants
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^0.20.1
->^0.30.1
Release Notes
drizzle-team/drizzle-orm (drizzle-kit)
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 consoleRunning
npx drizzle-kit export
will output this string to console
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 toolsnpx 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:
v0.29.1
Compare Source
Fixes
New Features/Helpers
🎉 Detailed JSDoc for all query builders in all dialects - thanks @realmikesolo
You can now access more information, hints, documentation links, etc. while developing and using JSDoc right in your IDE. Previously, we had them only for filter expressions, but now you can see them for all parts of the Drizzle query builder
🎉 New helpers for aggregate functions in SQL - thanks @L-Mario564
Here is a list of functions and equivalent using
sql
templatecount
countDistinct
avg
avgDistinct
sum
sumDistinct
max
min
New Packages
🎉 ESLint Drizzle Plugin
For cases where it's impossible to perform type checks for specific scenarios, or where it's possible but error messages would be challenging to understand, we've decided to create an ESLint package with recommended rules. This package aims to assist developers in handling crucial scenarios during development
Install
You can install those packages for typescript support in your IDE
Usage
Create a
.eslintrc.yml
file, adddrizzle
to theplugins
, and specify the rules you want to use. You can find a list of all existing rules belowAll config
This plugin exports an
all
config that makes use of all rules (except for deprecated ones).At the moment,
all
is equivalent torecommended
Rules
enforce-delete-with-where: Enforce using
delete
with the.where()
clause in the.delete()
statement. Most of the time, you don't need to delete all rows in the table and require some kind ofWHERE
statements.Error Message:
Optionally, you can define a
drizzleObjectName
in the plugin options that accept astring
orstring[]
. This is useful when you have objects or classes with a delete method that's not from Drizzle. Such adelete
method will trigger the ESLint rule. To avoid that, you can define the name of the Drizzle object that you use in your codebase (like db) so that the rule would only trigger if the delete method comes from this object:Example, config 1:
Example, config 2:
enforce-update-with-where: Enforce using
update
with the.where()
clause in the.update()
statement. Most of the time, you don't need to update all rows in the table and require some kind ofWHERE
statements.Error Message:
Optionally, you can define a
drizzleObjectName
in the plugin options that accept astring
orstring[]
. This is useful when you have objects or classes with a delete method that's not from Drizzle. Such asupdate
method will trigger the ESLint rule. To avoid that, you can define the name of the Drizzle object that you use in your codebase (like db) so that the rule would only trigger if the delete method comes from this object:Example, config 1:
Example, config 2:
v0.29.0
Compare Source
New Dialects
🎉
SingleStore
dialect is now available in DrizzleThanks 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
You can check out our Getting started guides to try SingleStore!
New Drivers
🎉
SQLite Durable Objects
driver is now available in DrizzleYou can now query SQLite Durable Objects in Drizzle!
For the full example, please check our Get Started Section
v0.28.1
Compare Source
Bug fixes
v0.28.0
Compare Source
Improvements
Bug Fixes
v0.27.2
Compare Source
drizzle-orm/supabase
v0.27.1
Compare Source
v0.27.0
Compare Source
Correct behavior when installed in a monorepo (multiple Drizzle instances)
Replacing all
instanceof
statements with a customis()
function allowed us to handle multiple Drizzle packages interacting properly.It also fixes one of our biggest Discord tickets:
maximum call stack exceeded
🎉You should now use
is()
instead ofinstanceof
to check if specific objects are instances of specific Drizzle types. It might be useful if you are building something on top of the Drizzle API.distinct
clause supportAlso,
distinct on
clause is available for PostgreSQL:bigint
andboolean
support for SQLiteContributed by @MrRahulRamkumar (#558), @raducristianpopa (#411) and @meech-ward (#725)
DX improvements
where
callback in RQB for tables without relationsVarious docs improvements
v0.26.2
Compare Source
v0.26.1
Compare Source
data is malformed
for viewsv0.26.0
Compare Source
New Features
Checks support in
drizzle-kit
You can use drizzle-kit to manage your
check
constraint defined in drizzle-orm schema definitionFor example current drizzle table:
will be generated into
The same is supported in all dialects
Limitations
generate
will work as expected for all check constraint changes.push
will detect only check renames and will recreate the constraint. All other changes to SQL won't be detected and will be ignored.So, if you want to change the constraint's SQL definition using only
push
, you would need to manually comment out the constraint,push
, then put it back with the new SQL definition andpush
one more time.Views support in
drizzle-kit
You can use drizzle-kit to manage your
views
defined in drizzle-orm schema definition. It will work with all existing dialects and view optionsPostgreSQL
For example current drizzle table:
will be generated into
Views supported in all dialects, but materialized views are supported only in PostgreSQL
Limitations
generate
will work as expected for all view changespush
limitations:push
, you would need to manually comment out the view,push
, then put it back with the new SQL definition andpush
one more time.Updates for PostgreSQL enums behavior
We've updated enum behavior in Drizzle with PostgreSQL:
Add value after or before in enum: With this change, Drizzle will now respect the order of values in the enum and allow adding new values after or before a specific one.
Support for dropping a value from an enum: In this case, Drizzle will attempt to alter all columns using the enum to text, then drop the existing enum and create a new one with the updated set of values. After that, all columns previously using the enum will be altered back to the new enum.
Support for dropping an enum
Support for moving enums between schemas
Support for renaming enums
v0.25.0
Compare Source
Breaking changes and migrate guide for Turso users
If you are using Turso and libsql, you will need to upgrade your
drizzle.config
and@libsql/client
package.@libsql/[email protected]
or higher if you are using themigrate
function. For other use cases, you can continue using previous versions(But the suggestion is to upgrade)To install the latest version, use the command:
drizzle.config
for SQLite and Turso users, which allowed a shared strategy for both dialects. Starting with this release, we are introducing the turso dialect in drizzle-kit. We will evolve and improve Turso as a separate dialect with its own migration strategies.Before
After
If you are using only SQLite, you can use
dialect: "sqlite"
LibSQL/Turso and Sqlite migration updates
SQLite "generate" and "push" statements updates
Starting from this release, we will no longer generate comments like this:
We will generate a set of statements, and you can decide if it's appropriate to create data-moving statements instead. Here is an example of the SQL file you'll receive now:
LibSQL/Turso "generate" and "push" statements updates
Since LibSQL supports more ALTER statements than SQLite, we can generate more statements without recreating your schema and moving all the data, which can be potentially dangerous for production environments.
LibSQL and Turso will now have a separate dialect in the Drizzle config file, meaning that we will evolve Turso and LibSQL independently from SQLite and will aim to support as many features as Turso/LibSQL offer.
With the updated LibSQL migration strategy, you will have the ability to:
You can find more information in the LibSQL documentation
LIMITATIONS
This is because LibSQL/Turso does not support dropping this type of foreign key.
If the table has indexes, altering columns will cause index recreation:
Drizzle-Kit will drop the indexes, modify the columns, and then create the indexes.
Adding or dropping composite foreign keys is not supported and will cause table recreation.
Primary key columns can not be altered and will cause table recreation.
Altering columns that are part of foreign key will cause table recreation.
NOTES
See more: https://www.sqlite.org/foreignkeys.html
New
casing
param indrizzle-orm
anddrizzle-kit
There are more improvements you can make to your schema definition. The most common way to name your variables in a database and in TypeScript code is usually
snake_case
in the database andcamelCase
in the code. For this case, in Drizzle, you can now define a naming strategy in your database to help Drizzle map column keys automatically. Let's take a table from the previous example and make it work with the new casing API in DrizzleTable can now become:
As you can see,
inStock
doesn't have a database name alias, but by defining the casing configuration at the connection level, all queries will automatically map it tosnake_case
For
drizzle-kit
migrations generation you should also specifycasing
param in drizzle config, so you can be sure you casing strategy will be applied to drizzle-kit as wellv0.24.2
Compare Source
New Features
🎉 Support for
pglite
driverYou can now use pglite with all drizzle-kit commands, including Drizzle Studio!
Bug fixes
v0.24.1
Compare Source
Bug fixes
What was fixed
introspect
command.::<type>
was included in the introspected output.preserve
casing option was brokenTickets that were closed
v0.24.0
Compare Source
mysql2
(sponsored by @rizen ❤). Read more in the docs.prepare()
in MySQL no longer requires a name argumentv0.23.2
Compare Source
schemaFilter
object was passed. It was detecting enums even in schemas that were not defined in the schemaFilter.drizzle-kit up
command to work as expected, starting from the sequences release.v0.23.1
Compare Source
InferModel
fromdrizzle-orm
v0.23.0
Compare Source
🎉 Added Knex and Kysely adapters! They allow you to manage the schemas and migrations with Drizzle and query the data with your favorite query builder. See documentation for more details:
🎉 Added "type maps" to all entities. You can access them via the special
_
property. For example:Full documentation on the type maps is coming soon.
🎉 Added
.$type()
method to all column builders to allow overriding the data type. It also replaces the optional generics on columns.❗ Changed syntax for text-based enum columns:
🎉 Allowed passing an array of values into
.insert().values()
directly without spreading:The spread syntax is now deprecated and will be removed in one of the next releases.
🎉 Added "table creators" to allow for table name customization:
🎉 Implemented support for selecting/joining raw SQL expressions:
🐛 Fixed a lot of bugs from user feedback on GitHub and Discord (thank you! ❤). Fixes #293 #301 #276 #269 #253 #311 #312
v0.22.8
Compare Source
v0.22.7
Compare Source
v0.22.6
Compare Source
v0.22.5
Compare Source
v0.22.4
Compare Source
v0.22.3
Compare Source
v0.22.2
Compare Source
v0.22.1
Compare Source
v0.22.0
Compare Source
🎉 Introduced a standalone query builder that can be used without a DB connection:
🎉 Improved
WITH ... SELECT
subquery creation syntax to more resemble SQL:Before:
After:
v0.21.4
Compare Source
v0.21.3
Compare Source
v0.21.2
Compare Source
v0.21.1
Compare Source
🎉 Added support for
HAVING
clause🎉 Added support for referencing selected fields in
.where()
,.having()
,.groupBy()
and.orderBy()
using an optional callback:v0.21.0
Compare Source
Drizzle ORM 0.21.0 was released 🎉
onUpdateNow()
expression generation for default migration statementSupport for PostgreSQL array types
drizzle kit will generate
Added composite primary key support to PostgreSQL and MySQL
PostgreSQL
MySQL
Drizzle Kit 0.17.0 was released 🎉
Breaking changes
Folder structure was migrated to newer version
Before running any new migrations
drizzle-kit
will ask you to upgrade in a first placeMigration file structure < 0.17.0
Migration file structure >= 0.17.0
Upgrading to 0.17.0
To easily migrate from previous folder structure to new you need to run
up
command in drizzle kit. It's a great helper to upgrade your migrations to new format on each drizzle kit major updateNew Features
New
drizzle-kit
command calleddrop
In a case you think some of migrations were generated in a wrong way or you have made migration simultaneously with other developers you can easily rollback it by running simple command
This command will show you a list of all migrations you have and you'll need just to choose migration you want to drop. After that
drizzle-kit
will do all the hard work on deleting migration filesNew
drizzle-kit
option--breakpoints
forgenerate
andintrospect
commandsIf particular driver doesn't support running multiple quries in 1 execution you can use
--breakpoints
.drizzle-kit
will generate current sqlUsing it
drizzle-orm
will split all sql files by statements and execute them separatelyAdd
drizzle-kit introspect
for MySQL dialectYou can introspect your mysql database using
introspect:mysql
commandSupport for glob patterns for schema path
Usage example in
cli
Usage example in
drizzle.config
Bug Fixes and improvements
Postgres dialect
GitHub issue fixes
Introspect improvements
cidr
,inet
,macaddr
,macaddr8
,smallserial
minute to second
,day to hour
, etc.numerics
enums
MySQL dialect
Migration generation improvements
autoincrement
create, delete and update handlingon update current_timestamp
handling for timestampsmodify
not null
changing, usingmodify
default
drop and create statementsdefaults
generation bugs, such as escaping, date strings, expressions, etcIntrospect improvements
autoincrement
to all supported typesfsp
for time based data typesdouble
{ mode: "string" }
by defaultjson
,decimal
andbinary
datatypesenum
data type generationv0.20.18
Compare Source
v0.20.17
Compare Source
v0.20.16
Compare Source
v0.20.15
Compare Source
v0.20.14
Compare Source
v0.20.13
Compare Source
v0.20.12
Compare Source
v0.20.11
Compare Source
v0.20.10
Compare Source
[`v0.20.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.