Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Commit

Permalink
fix: properly generate schema
Browse files Browse the repository at this point in the history
  • Loading branch information
KagChi committed Feb 18, 2024
1 parent 6371212 commit 648e434
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ CREATE TABLE IF NOT EXISTS "channels_overwrite" (
--> statement-breakpoint
CREATE TABLE IF NOT EXISTS "voice_states" (
"member_id" text NOT NULL,
"guild_id" text,
"guild_id" text NOT NULL,
"channel_id" text NOT NULL,
"session_id" text,
"deaf" boolean,
Expand All @@ -131,7 +131,7 @@ CREATE TABLE IF NOT EXISTS "voice_states" (
"self_video" boolean,
"suppress" boolean,
"request_to_speak_timestamp" text,
CONSTRAINT "voice_states_member_id_channel_id" PRIMARY KEY("member_id","channel_id")
CONSTRAINT "voice_states_member_id_guild_id" PRIMARY KEY("member_id","guild_id")
);
--> statement-breakpoint
CREATE TABLE IF NOT EXISTS "messages" (
Expand Down
10 changes: 5 additions & 5 deletions packages/kanao-schema/drizzle/meta/0000_snapshot.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"id": "ab759bda-c256-4fc6-b4ea-de791bf064ec",
"id": "dff2f68c-be88-4c13-ad05-ff82a69b0db6",
"prevId": "00000000-0000-0000-0000-000000000000",
"version": "5",
"dialect": "pg",
Expand Down Expand Up @@ -781,7 +781,7 @@
"name": "guild_id",
"type": "text",
"primaryKey": false,
"notNull": false
"notNull": true
},
"channel_id": {
"name": "channel_id",
Expand Down Expand Up @@ -887,11 +887,11 @@
}
},
"compositePrimaryKeys": {
"voice_states_member_id_channel_id": {
"name": "voice_states_member_id_channel_id",
"voice_states_member_id_guild_id": {
"name": "voice_states_member_id_guild_id",
"columns": [
"member_id",
"channel_id"
"guild_id"
]
}
},
Expand Down
4 changes: 2 additions & 2 deletions packages/kanao-schema/drizzle/meta/_journal.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
{
"idx": 0,
"version": "5",
"when": 1708234742737,
"tag": "0000_exotic_wonder_man",
"when": 1708235263010,
"tag": "0000_futuristic_mole_man",
"breakpoints": true
}
]
Expand Down

0 comments on commit 648e434

Please sign in to comment.