Skip to content

Commit

Permalink
deps: Upgrade drizzle-kit
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedBassem committed Sep 28, 2024
1 parent b32a832 commit 57f5faa
Show file tree
Hide file tree
Showing 30 changed files with 2,217 additions and 2,171 deletions.
2 changes: 1 addition & 1 deletion packages/db/drizzle.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ const databaseURL = serverConfig.dataDir
: "./db.db";

export default {
dialect: "sqlite",
schema: "./schema.ts",
out: "./drizzle",
driver: "better-sqlite",
dbCredentials: {
url: databaseURL,
},
Expand Down
144 changes: 98 additions & 46 deletions packages/db/drizzle/meta/0000_snapshot.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"version": "5",
"version": "6",
"dialect": "sqlite",
"id": "926e135f-db63-4273-b193-4eb2b5c1784d",
"prevId": "00000000-0000-0000-0000-000000000000",
"tables": {
"account": {
"name": "account",
Expand Down Expand Up @@ -90,16 +88,23 @@
"account_userId_user_id_fk": {
"name": "account_userId_user_id_fk",
"tableFrom": "account",
"columnsFrom": [
"userId"
],
"tableTo": "user",
"columnsFrom": ["userId"],
"columnsTo": ["id"],
"onDelete": "cascade",
"onUpdate": "no action"
"columnsTo": [
"id"
],
"onUpdate": "no action",
"onDelete": "cascade"
}
},
"compositePrimaryKeys": {
"account_provider_providerAccountId_pk": {
"columns": ["provider", "providerAccountId"],
"columns": [
"provider",
"providerAccountId"
],
"name": "account_provider_providerAccountId_pk"
}
},
Expand Down Expand Up @@ -154,29 +159,40 @@
"indexes": {
"apiKey_name_unique": {
"name": "apiKey_name_unique",
"columns": ["name"],
"columns": [
"name"
],
"isUnique": true
},
"apiKey_keyId_unique": {
"name": "apiKey_keyId_unique",
"columns": ["keyId"],
"columns": [
"keyId"
],
"isUnique": true
},
"apiKey_name_userId_unique": {
"name": "apiKey_name_userId_unique",
"columns": ["name", "userId"],
"columns": [
"name",
"userId"
],
"isUnique": true
}
},
"foreignKeys": {
"apiKey_userId_user_id_fk": {
"name": "apiKey_userId_user_id_fk",
"tableFrom": "apiKey",
"columnsFrom": [
"userId"
],
"tableTo": "user",
"columnsFrom": ["userId"],
"columnsTo": ["id"],
"onDelete": "cascade",
"onUpdate": "no action"
"columnsTo": [
"id"
],
"onUpdate": "no action",
"onDelete": "cascade"
}
},
"compositePrimaryKeys": {},
Expand Down Expand Up @@ -240,11 +256,15 @@
"bookmarkLinks_id_bookmarks_id_fk": {
"name": "bookmarkLinks_id_bookmarks_id_fk",
"tableFrom": "bookmarkLinks",
"columnsFrom": [
"id"
],
"tableTo": "bookmarks",
"columnsFrom": ["id"],
"columnsTo": ["id"],
"onDelete": "cascade",
"onUpdate": "no action"
"columnsTo": [
"id"
],
"onUpdate": "no action",
"onDelete": "cascade"
}
},
"compositePrimaryKeys": {},
Expand Down Expand Up @@ -285,19 +305,26 @@
"indexes": {
"bookmarkTags_userId_name_unique": {
"name": "bookmarkTags_userId_name_unique",
"columns": ["userId", "name"],
"columns": [
"userId",
"name"
],
"isUnique": true
}
},
"foreignKeys": {
"bookmarkTags_userId_user_id_fk": {
"name": "bookmarkTags_userId_user_id_fk",
"tableFrom": "bookmarkTags",
"columnsFrom": [
"userId"
],
"tableTo": "user",
"columnsFrom": ["userId"],
"columnsTo": ["id"],
"onDelete": "cascade",
"onUpdate": "no action"
"columnsTo": [
"id"
],
"onUpdate": "no action",
"onDelete": "cascade"
}
},
"compositePrimaryKeys": {},
Expand Down Expand Up @@ -349,11 +376,15 @@
"bookmarks_userId_user_id_fk": {
"name": "bookmarks_userId_user_id_fk",
"tableFrom": "bookmarks",
"columnsFrom": [
"userId"
],
"tableTo": "user",
"columnsFrom": ["userId"],
"columnsTo": ["id"],
"onDelete": "cascade",
"onUpdate": "no action"
"columnsTo": [
"id"
],
"onUpdate": "no action",
"onDelete": "cascade"
}
},
"compositePrimaryKeys": {},
Expand Down Expand Up @@ -389,11 +420,15 @@
"session_userId_user_id_fk": {
"name": "session_userId_user_id_fk",
"tableFrom": "session",
"columnsFrom": [
"userId"
],
"tableTo": "user",
"columnsFrom": ["userId"],
"columnsTo": ["id"],
"onDelete": "cascade",
"onUpdate": "no action"
"columnsTo": [
"id"
],
"onUpdate": "no action",
"onDelete": "cascade"
}
},
"compositePrimaryKeys": {},
Expand Down Expand Up @@ -436,25 +471,36 @@
"tagsOnBookmarks_bookmarkId_bookmarks_id_fk": {
"name": "tagsOnBookmarks_bookmarkId_bookmarks_id_fk",
"tableFrom": "tagsOnBookmarks",
"columnsFrom": [
"bookmarkId"
],
"tableTo": "bookmarks",
"columnsFrom": ["bookmarkId"],
"columnsTo": ["id"],
"onDelete": "cascade",
"onUpdate": "no action"
"columnsTo": [
"id"
],
"onUpdate": "no action",
"onDelete": "cascade"
},
"tagsOnBookmarks_tagId_bookmarkTags_id_fk": {
"name": "tagsOnBookmarks_tagId_bookmarkTags_id_fk",
"tableFrom": "tagsOnBookmarks",
"columnsFrom": [
"tagId"
],
"tableTo": "bookmarkTags",
"columnsFrom": ["tagId"],
"columnsTo": ["id"],
"onDelete": "cascade",
"onUpdate": "no action"
"columnsTo": [
"id"
],
"onUpdate": "no action",
"onDelete": "cascade"
}
},
"compositePrimaryKeys": {
"tagsOnBookmarks_bookmarkId_tagId_pk": {
"columns": ["bookmarkId", "tagId"],
"columns": [
"bookmarkId",
"tagId"
],
"name": "tagsOnBookmarks_bookmarkId_tagId_pk"
}
},
Expand Down Expand Up @@ -509,7 +555,9 @@
"indexes": {
"user_email_unique": {
"name": "user_email_unique",
"columns": ["email"],
"columns": [
"email"
],
"isUnique": true
}
},
Expand Down Expand Up @@ -546,7 +594,10 @@
"foreignKeys": {},
"compositePrimaryKeys": {
"verificationToken_identifier_token_pk": {
"columns": ["identifier", "token"],
"columns": [
"identifier",
"token"
],
"name": "verificationToken_identifier_token_pk"
}
},
Expand All @@ -555,8 +606,9 @@
},
"enums": {},
"_meta": {
"schemas": {},
"tables": {},
"columns": {}
}
}
},
"id": "926e135f-db63-4273-b193-4eb2b5c1784d",
"prevId": "00000000-0000-0000-0000-000000000000"
}
Loading

0 comments on commit 57f5faa

Please sign in to comment.