We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5339b29 commit 2a8fbd9Copy full SHA for 2a8fbd9
1 file changed
api-server/source/migrations/024-update-oauth2-tokens.ts
@@ -0,0 +1,15 @@
1
+import { definePostgresMigration } from "gruber";
2
+
3
+export default definePostgresMigration({
4
+ async up(sql) {
5
+ await sql`
6
+ ALTER TABLE oauth2_tokens
7
+ ALTER COLUMN scope TYPE VARCHAR(1024),
8
+ ALTER COLUMN access_token TYPE VARCHAR(1024),
9
+ ALTER COLUMN refresh_token TYPE VARCHAR(1024)
10
+ `;
11
+ },
12
+ async down(sql) {
13
+ // don't alter it back
14
15
+});
0 commit comments