Skip to content

Commit 2a8fbd9

Browse files
committed
update oauth2_tokens
1 parent 5339b29 commit 2a8fbd9

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)