aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/migrations/0150-avatar-cascade.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers/migrations/0150-avatar-cascade.ts')
-rw-r--r--server/initializers/migrations/0150-avatar-cascade.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/initializers/migrations/0150-avatar-cascade.ts b/server/initializers/migrations/0150-avatar-cascade.ts
index fb3b25773..ecf3467a0 100644
--- a/server/initializers/migrations/0150-avatar-cascade.ts
+++ b/server/initializers/migrations/0150-avatar-cascade.ts
@@ -7,7 +7,8 @@ async function up (utils: {
7}): Promise<void> { 7}): Promise<void> {
8 await utils.queryInterface.removeConstraint('actor', 'actor_avatarId_fkey') 8 await utils.queryInterface.removeConstraint('actor', 'actor_avatarId_fkey')
9 9
10 await utils.queryInterface.addConstraint('actor', [ 'avatarId' ], { 10 await utils.queryInterface.addConstraint('actor', {
11 fields: [ 'avatarId' ],
11 type: 'foreign key', 12 type: 'foreign key',
12 references: { 13 references: {
13 table: 'avatar', 14 table: 'avatar',