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

Commit

Permalink
fix(schema): fix migrations not generated
Browse files Browse the repository at this point in the history
  • Loading branch information
Hazmi35 authored May 5, 2024
1 parent e6cd5b8 commit 2d00b94
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CREATE TABLE IF NOT EXISTS "members" (
"id" text PRIMARY KEY NOT NULL,
"id" text,
"guild_id" text,
"nick" text,
"avatar" text,
Expand All @@ -9,7 +9,8 @@ CREATE TABLE IF NOT EXISTS "members" (
"deaf" boolean,
"mute" boolean,
"pending" boolean,
"communication_disabled_until" text
"communication_disabled_until" text,
CONSTRAINT "members_guild_id_id_pk" PRIMARY KEY("guild_id","id")
);
--> statement-breakpoint
CREATE TABLE IF NOT EXISTS "users" (
Expand Down Expand Up @@ -153,7 +154,6 @@ CREATE TABLE IF NOT EXISTS "messages" (
"position" integer
);
--> statement-breakpoint
CREATE INDEX IF NOT EXISTS "members_guildId_idx" ON "members" ("guild_id");--> statement-breakpoint
CREATE INDEX IF NOT EXISTS "member_roles_guildId_idx" ON "member_roles" ("guild_id");--> statement-breakpoint
CREATE INDEX IF NOT EXISTS "roles_guildId_idx" ON "roles" ("guild_id");--> statement-breakpoint
CREATE INDEX IF NOT EXISTS "channels_guildId_idx" ON "channels" ("guild_id");--> statement-breakpoint
Expand Down
22 changes: 11 additions & 11 deletions packages/kanao-schema/drizzle/meta/0000_snapshot.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"id": "ef39418c-c6bf-47b7-8468-58ccbc774352",
"id": "4f478895-0de3-4070-970f-622798d50990",
"prevId": "00000000-0000-0000-0000-000000000000",
"version": "5",
"dialect": "pg",
Expand All @@ -11,8 +11,8 @@
"id": {
"name": "id",
"type": "text",
"primaryKey": true,
"notNull": true
"primaryKey": false,
"notNull": false
},
"guild_id": {
"name": "guild_id",
Expand Down Expand Up @@ -75,17 +75,17 @@
"notNull": false
}
},
"indexes": {
"members_guildId_idx": {
"name": "members_guildId_idx",
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {
"members_guild_id_id_pk": {
"name": "members_guild_id_id_pk",
"columns": [
"guild_id"
],
"isUnique": false
"guild_id",
"id"
]
}
},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {}
},
"users": {
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": 1714564879918,
"tag": "0000_thankful_marvel_boy",
"when": 1714914918205,
"tag": "0000_cloudy_ego",
"breakpoints": true
}
]
Expand Down

0 comments on commit 2d00b94

Please sign in to comment.