Skip to content

Commit

Permalink
refactor: picture should be a url ending with img extension
Browse files Browse the repository at this point in the history
  • Loading branch information
usrrname committed Feb 19, 2025
1 parent 6982221 commit 767494d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/migrations/043_userinfo_oidc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ export async function up(knex: Knex): Promise<void> {
table.string('given_name', 30).nullable()
table.string('family_name', 30).nullable()
table.string('nickname').nullable()
table.string('preferred_username', 100).nullable()
table.string('profile', 2048).nullable()
table.binary('picture').nullable()
table.string('picture').nullable().checkRegex('^(http://|https://).+\\.(png|jpeg|jpg|gif).*$')
table.integer('updated_at').unsigned().nullable()
table.boolean('email_verified').nullable()
table.string('phone_number', 200).nullable()
Expand Down

0 comments on commit 767494d

Please sign in to comment.