Skip to content

Commit ba6a85d

Browse files
committed
🐞 fix: add migrations
1 parent 17617db commit ba6a85d

File tree

3 files changed

+113
-0
lines changed

3 files changed

+113
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ALTER TABLE "user" ADD COLUMN "ntfy_topic" text;--> statement-breakpoint
2+
ALTER TABLE "user" ADD CONSTRAINT "user_ntfyTopic_unique" UNIQUE("ntfy_topic");

drizzle/meta/0001_snapshot.json

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
{
2+
"id": "b68fbca3-1dd2-4fa7-80d5-e6bb2c1e11a0",
3+
"prevId": "cf3c668d-af2e-4ec7-8960-894f91d4ccb9",
4+
"version": "7",
5+
"dialect": "postgresql",
6+
"tables": {
7+
"public.user": {
8+
"name": "user",
9+
"schema": "",
10+
"columns": {
11+
"id": {
12+
"name": "id",
13+
"type": "text",
14+
"primaryKey": true,
15+
"notNull": true
16+
},
17+
"created_at": {
18+
"name": "created_at",
19+
"type": "timestamp",
20+
"primaryKey": false,
21+
"notNull": true,
22+
"default": "now()"
23+
},
24+
"updated_at": {
25+
"name": "updated_at",
26+
"type": "timestamp",
27+
"primaryKey": false,
28+
"notNull": false,
29+
"default": "now()"
30+
},
31+
"email": {
32+
"name": "email",
33+
"type": "text",
34+
"primaryKey": false,
35+
"notNull": true
36+
},
37+
"family_name": {
38+
"name": "family_name",
39+
"type": "text",
40+
"primaryKey": false,
41+
"notNull": true
42+
},
43+
"given_name": {
44+
"name": "given_name",
45+
"type": "text",
46+
"primaryKey": false,
47+
"notNull": true
48+
},
49+
"locale": {
50+
"name": "locale",
51+
"type": "text",
52+
"primaryKey": false,
53+
"notNull": false
54+
},
55+
"preferred_username": {
56+
"name": "preferred_username",
57+
"type": "text",
58+
"primaryKey": false,
59+
"notNull": true
60+
},
61+
"ntfy_topic": {
62+
"name": "ntfy_topic",
63+
"type": "text",
64+
"primaryKey": false,
65+
"notNull": false
66+
}
67+
},
68+
"indexes": {},
69+
"foreignKeys": {},
70+
"compositePrimaryKeys": {},
71+
"uniqueConstraints": {
72+
"user_id_unique": {
73+
"name": "user_id_unique",
74+
"nullsNotDistinct": false,
75+
"columns": ["id"]
76+
},
77+
"user_email_unique": {
78+
"name": "user_email_unique",
79+
"nullsNotDistinct": false,
80+
"columns": ["email"]
81+
},
82+
"user_ntfyTopic_unique": {
83+
"name": "user_ntfyTopic_unique",
84+
"nullsNotDistinct": false,
85+
"columns": ["ntfy_topic"]
86+
}
87+
},
88+
"policies": {},
89+
"checkConstraints": {},
90+
"isRLSEnabled": false
91+
}
92+
},
93+
"enums": {},
94+
"schemas": {},
95+
"sequences": {},
96+
"roles": {},
97+
"policies": {},
98+
"views": {},
99+
"_meta": {
100+
"columns": {},
101+
"schemas": {},
102+
"tables": {}
103+
}
104+
}

drizzle/meta/_journal.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88
"when": 1750864844584,
99
"tag": "0000_absent_vengeance",
1010
"breakpoints": true
11+
},
12+
{
13+
"idx": 1,
14+
"version": "7",
15+
"when": 1753478046121,
16+
"tag": "0001_flowery_silver_fox",
17+
"breakpoints": true
1118
}
1219
]
1320
}

0 commit comments

Comments
 (0)