Skip to content
This repository was archived by the owner on Jan 30, 2024. It is now read-only.

Commit 11df077

Browse files
committed
All null profile ids for messages and replies
1 parent 48ee74c commit 11df077

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/* eslint-disable camelcase */
2+
3+
exports.shorthands = undefined
4+
5+
exports.up = (pgm) => {
6+
pgm.alterColumn({ schema: 'public', name: 'squeak_messages' }, 'profile_id', {
7+
type: 'bigint',
8+
references: { schema: 'public', name: 'squeak_profiles' },
9+
referencesConstraintName: 'messages_profile_id_fkey',
10+
allowNull: true,
11+
})
12+
13+
pgm.alterColumn({ schema: 'public', name: 'squeak_replies' }, 'profile_id', {
14+
type: 'bigint',
15+
references: { schema: 'public', name: 'squeak_profiles' },
16+
referencesConstraintName: 'replies_profile_id_fkey',
17+
allowNull: true,
18+
})
19+
}

0 commit comments

Comments
 (0)