From 6bf4637a03c6d251cf43542788de7d3d02374077 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Wed, 4 Oct 2023 23:48:00 +1100 Subject: fucking postgres --- src/util/migration/postgres/1696420827239-guildChannelOrdering.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/util/migration/postgres') diff --git a/src/util/migration/postgres/1696420827239-guildChannelOrdering.ts b/src/util/migration/postgres/1696420827239-guildChannelOrdering.ts index 82085991..6fc80ffd 100644 --- a/src/util/migration/postgres/1696420827239-guildChannelOrdering.ts +++ b/src/util/migration/postgres/1696420827239-guildChannelOrdering.ts @@ -11,7 +11,7 @@ export class guildChannelOrdering1696420827239 implements MigrationInterface { ); await queryRunner.query( - `ALTER TABLE guilds ADD channelOrdering text NOT NULL DEFAULT '[]'`, + `ALTER TABLE guilds ADD channel_ordering text NOT NULL DEFAULT '[]'`, ); for (const guild_id of guilds.records.map((x) => x.id)) { @@ -26,7 +26,7 @@ export class guildChannelOrdering1696420827239 implements MigrationInterface { channels.sort((a, b) => a.position - b.position); await queryRunner.query( - `UPDATE guilds SET channelOrdering = $1 WHERE id = $2`, + `UPDATE guilds SET channel_ordering = $1 WHERE id = $2`, [JSON.stringify(channels.map((x) => x.id)), guild_id], ); } -- cgit 1.5.1