mysql8 hopefully fix index creation

Signed-off-by: Billy Stalnaker <bstalnaker@roadie.com>
This commit is contained in:
Billy Stalnaker
2025-03-25 11:51:45 -04:00
parent 9d0bcdbd27
commit 4d772f6d74
@@ -15,7 +15,7 @@
*/
exports.up = async function up(knex) {
await knex.schema.alterTable('user_settings', table => {
table.string('topic', 255).nullable().after('origin');
table.string('topic').nullable().after('origin');
});
await knex.schema.table('user_settings', table => {
@@ -23,7 +23,7 @@ exports.up = async function up(knex) {
});
await knex.schema.alterTable('user_settings', table => {
table.unique(['user', 'channel', 'origin', 'topic'], {
table.unique(['user(255)', 'channel(255)', 'origin(255)', 'topic(255)'], {
indexName: 'user_settings_unique_idx',
});
});