Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CONTENTBOX-1524 index names have to be unique with postgres, so rename idx_deleted #625

Merged
merged 1 commit into from
Mar 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/contentbox/migrations/init/create_author.cfc
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ component {

// Indexes
table.index( [ "email" ], "idx_email" );
table.index( [ "isDeleted" ], "idx_deleted" );
table.index( [ "isDeleted" ], "idx_author_deleted" );
table.index( [ "isActive" ], "idx_activeAuthor" );
table.index( [ "isPasswordReset" ], "idx_passwordReset" );
table.index( [ "is2FactorAuth" ], "idx_2factorauth" );
Expand Down
2 changes: 1 addition & 1 deletion modules/contentbox/migrations/init/create_category.cfc
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ component {
table.index( [ "isPublic" ], "idx_isPublic" );
table.index( [ "slug" ], "idx_categorySlug" );
table.index( [ "category" ], "idx_categoryName" );
table.index( [ "isDeleted" ], "idx_deleted" );
table.index( [ "isDeleted" ], "idx_category_deleted" );
} );
}

Expand Down
2 changes: 1 addition & 1 deletion modules/contentbox/migrations/init/create_comments.cfc
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ component {
// Indexes
table.index( [ "isApproved", "FK_contentID" ], "idx_contentComment" );
table.index( [ "isApproved" ], "idx_approved" );
table.index( [ "isDeleted" ], "idx_deleted" );
table.index( [ "isDeleted" ], "idx_comments_deleted" );
} );
}

Expand Down
2 changes: 1 addition & 1 deletion modules/contentbox/migrations/init/create_menu_items.cfc
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ component {

// Index
table.index( [ "title" ], "idx_menuItemTitle" );
table.index( [ "isDeleted" ], "idx_deleted" );
table.index( [ "isDeleted" ], "idx_menuitems_deleted" );
} );
}

Expand Down
2 changes: 1 addition & 1 deletion modules/contentbox/migrations/init/create_modules.cfc
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ component {
table.index( [ "entryPoint" ], "idx_entryPoint" );
table.index( [ "isActive" ], "idx_activeModule" );
table.index( [ "moduleType" ], "idx_moduleType" );
table.index( [ "isDeleted" ], "idx_deleted" );
table.index( [ "isDeleted" ], "idx_modules_deleted" );
} );
}

Expand Down
2 changes: 1 addition & 1 deletion modules/contentbox/migrations/init/create_security_rules.cfc
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ component {
.default( "info" );

// Indexes
table.index( [ "isDeleted" ], "idx_deleted" );
table.index( [ "isDeleted" ], "idx_securityrules_deleted" );
} );
}

Expand Down
2 changes: 1 addition & 1 deletion modules/contentbox/migrations/init/create_settings.cfc
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ component {

// Indexes
table.index( [ "isCore" ], "idx_core" );
table.index( [ "isDeleted" ], "idx_deleted" );
table.index( [ "isDeleted" ], "idx_settings_deleted" );
} );
}

Expand Down
2 changes: 1 addition & 1 deletion modules/contentbox/migrations/init/create_sites.cfc
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ component {

// Indexes
table.index( [ "slug" ], "idx_siteSlug" );
table.index( [ "isDeleted" ], "idx_deleted" );
table.index( [ "isDeleted" ], "idx_sites_deleted" );
} );
}

Expand Down
2 changes: 1 addition & 1 deletion modules/contentbox/migrations/init/create_stats.cfc
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ component {
.onTable( "cb_content" );

// Index
table.index( [ "isDeleted" ], "idx_deleted" );
table.index( [ "isDeleted" ], "idx_stats_deleted" );
} );
}

Expand Down
2 changes: 1 addition & 1 deletion modules/contentbox/migrations/init/create_subscribers.cfc
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ component {

// Indexes
table.index( [ "subscriberEmail" ], "idx_subscriberEmail" );
table.index( [ "isDeleted" ], "idx_deleted" );
table.index( [ "isDeleted" ], "idx_subscribers_deleted" );
} );
}

Expand Down
2 changes: 1 addition & 1 deletion modules/contentbox/migrations/init/create_subscriptions.cfc
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ component {
.onTable( "cb_subscribers" );

// Indexes
table.index( [ "isDeleted" ], "idx_deleted" );
table.index( [ "isDeleted" ], "idx_subscriptions_deleted" );
} );
}

Expand Down
Loading