summary refs log tree commit diff
path: root/src/util/migration/mysql/1696420827239-guildChannelOrdering.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-10-04 23:48:00 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-10-04 23:48:00 +1100
commit6bf4637a03c6d251cf43542788de7d3d02374077 (patch)
tree39d8fe2beebe8cb229b6e5a492bedff649ae234b /src/util/migration/mysql/1696420827239-guildChannelOrdering.ts
parentfucking prettier (diff)
downloadserver-6bf4637a03c6d251cf43542788de7d3d02374077.tar.xz
fucking postgres
Diffstat (limited to 'src/util/migration/mysql/1696420827239-guildChannelOrdering.ts')
-rw-r--r--src/util/migration/mysql/1696420827239-guildChannelOrdering.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/migration/mysql/1696420827239-guildChannelOrdering.ts b/src/util/migration/mysql/1696420827239-guildChannelOrdering.ts
index bbab72e7..083f3680 100644
--- a/src/util/migration/mysql/1696420827239-guildChannelOrdering.ts
+++ b/src/util/migration/mysql/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 = ? WHERE id = ?`,
+				`UPDATE guilds SET channel_ordering = ? WHERE id = ?`,
 				[JSON.stringify(channels.map((x) => x.id)), guild_id],
 			);
 		}