Skip to content

Commit d9da9f8

Browse files
lane711claude
andauthored
fix: resolve fresh install migration error (duplicate column name: data) (#771) (#794)
Migration 035 attempted ALTER TABLE ADD COLUMN data on user_profiles, but migration 032 already creates the table with that column. Wrangler's migration runner treats duplicate column errors as hard failures, breaking fresh installs. - Convert migration 035 to a no-op (SELECT 1) since 032 handles fresh installs - Add runtime column detection in MigrationService for existing databases that ran the old 032 without the data column - Regenerate migrations bundle (also picks up previously unbundled migration 036) Closes #771 Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent bcc115b commit d9da9f8

60 files changed

Lines changed: 2197 additions & 24326 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/core/dist/chunk-2BL2A62D.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/core/dist/chunk-3P36UZXJ.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/core/dist/chunk-5SOFMH66.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { getCacheService, CACHE_CONFIGS, SettingsService, getLogger, getAppInstance, buildRouteList, CATEGORY_INFO } from './chunk-TBJY2FF7.js';
2-
import { requireAuth, requireRole, isPluginActive, optionalAuth, rateLimit, AuthManager, logActivity, generateCsrfToken } from './chunk-2BL2A62D.js';
1+
import { getCacheService, CACHE_CONFIGS, SettingsService, getLogger, getAppInstance, buildRouteList, CATEGORY_INFO } from './chunk-3P36UZXJ.js';
2+
import { requireAuth, requireRole, isPluginActive, optionalAuth, rateLimit, AuthManager, logActivity, generateCsrfToken } from './chunk-JCGTENN6.js';
33
import { PluginService, PLUGIN_REGISTRY, findPluginByCodeName, createContentFromSubmission } from './chunk-G7XSN72O.js';
4-
import { MigrationService } from './chunk-5SOFMH66.js';
4+
import { MigrationService } from './chunk-YZLXJDZ4.js';
55
import { renderDesignPage, renderCheckboxPage, renderTestimonialsList, renderCodeExamplesList, renderAlert, renderTable, renderPagination, renderConfirmationDialog, getConfirmationDialogScript, renderAdminLayout, adminLayoutV2, renderForm } from './chunk-XWIA3HVX.js';
66
import { init_admin_layout_catalyst_template, renderAdminLayoutCatalyst } from './chunk-55RDMDOP.js';
77
import { PluginBuilder, TurnstileService } from './chunk-EXNEW5US.js';
8-
import { QueryFilterBuilder, getCoreVersion, getBlocksFieldConfig, parseBlocksValue } from './chunk-EWXV2KG2.js';
8+
import { QueryFilterBuilder, getCoreVersion, getBlocksFieldConfig, parseBlocksValue } from './chunk-MVSCB4E3.js';
99
import { metricsTracker } from './chunk-FICTAGD4.js';
1010
import { escapeHtml, sanitizeRichText, sanitizeInput } from './chunk-TQABQWOP.js';
1111
import { Hono } from 'hono';
@@ -2351,7 +2351,7 @@ adminApiRoutes.delete("/collections/:id", async (c) => {
23512351
});
23522352
adminApiRoutes.get("/migrations/status", async (c) => {
23532353
try {
2354-
const { MigrationService: MigrationService2 } = await import('./migrations-YB52SLW7.js');
2354+
const { MigrationService: MigrationService2 } = await import('./migrations-LAIKMHXZ.js');
23552355
const db = c.env.DB;
23562356
const migrationService = new MigrationService2(db);
23572357
const status = await migrationService.getMigrationStatus();
@@ -2376,7 +2376,7 @@ adminApiRoutes.post("/migrations/run", async (c) => {
23762376
error: "Unauthorized. Admin access required."
23772377
}, 403);
23782378
}
2379-
const { MigrationService: MigrationService2 } = await import('./migrations-YB52SLW7.js');
2379+
const { MigrationService: MigrationService2 } = await import('./migrations-LAIKMHXZ.js');
23802380
const db = c.env.DB;
23812381
const migrationService = new MigrationService2(db);
23822382
const result = await migrationService.runPendingMigrations();
@@ -2398,7 +2398,7 @@ adminApiRoutes.post("/migrations/run", async (c) => {
23982398
});
23992399
adminApiRoutes.get("/migrations/validate", async (c) => {
24002400
try {
2401-
const { MigrationService: MigrationService2 } = await import('./migrations-YB52SLW7.js');
2401+
const { MigrationService: MigrationService2 } = await import('./migrations-LAIKMHXZ.js');
24022402
const db = c.env.DB;
24032403
const migrationService = new MigrationService2(db);
24042404
const validation = await migrationService.validateSchema();
@@ -28960,5 +28960,5 @@ var ROUTES_INFO = {
2896028960
};
2896128961

2896228962
export { ROUTES_INFO, adminCheckboxRoutes, adminCollectionsRoutes, adminDesignRoutes, adminFormsRoutes, adminLogsRoutes, adminMediaRoutes, adminPluginRoutes, adminSettingsRoutes, admin_api_default, admin_code_examples_default, admin_content_default, admin_testimonials_default, api_content_crud_default, api_default, api_media_default, api_system_default, auth_default, createUserProfilesPlugin, defineUserProfile, getConfirmationDialogScript2 as getConfirmationDialogScript, getUserProfileConfig, public_forms_default, renderConfirmationDialog2 as renderConfirmationDialog, router, router2, test_cleanup_default, userProfilesPlugin, userRoutes };
28963-
//# sourceMappingURL=chunk-7MMD5WMK.js.map
28964-
//# sourceMappingURL=chunk-7MMD5WMK.js.map
28963+
//# sourceMappingURL=chunk-5WQKF446.js.map
28964+
//# sourceMappingURL=chunk-5WQKF446.js.map
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/core/dist/chunk-ABB34XUS.cjs.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)