From 389cf22729166208a297a9f752b151637fe504bb Mon Sep 17 00:00:00 2001 From: Alies Lapatsin <5278175+alies-dev@users.noreply.github.com> Date: Sun, 8 Nov 2026 14:00:36 +0100 Subject: [PATCH] Enable /migrate to apply the error_level column Production deploys don't run composer scripts, so the codes.error_level migration from #143 has most likely not run; add_code.php writes that column, so saving snippets needs it. --- .htaccess | 2 +- views/migrate.php | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.htaccess b/.htaccess index 26100ba..da73ccc 100755 --- a/.htaccess +++ b/.htaccess @@ -103,7 +103,7 @@ RewriteRule ^sitemap\.xml$ /views/sitemap.php [L,NC] RewriteRule ^add_code$ /views/add_code.php [L,NC] RewriteRule ^play/?$ /views/index.php?page=play [L,NC,QSA] RewriteRule ^(playground|r|demo|try|sandbox)/?$ /play [R=301,L,NC,QSA] -# RewriteRule ^migrate$ /views/migrate.php [L,NC,QSA] +RewriteRule ^migrate$ /views/migrate.php [L,NC,QSA] RewriteRule ^quickstart/?$ https://psalm.dev/docs/running_psalm/installation/ [R=301,L] RewriteRule ^contribute/?$ /views/contribute.php [L,NC] RewriteRule ^support/?$ /views/support.php [L,NC] diff --git a/views/migrate.php b/views/migrate.php index fd46e4c..959d54d 100644 --- a/views/migrate.php +++ b/views/migrate.php @@ -7,9 +7,6 @@ * It can only apply migrations that are already committed, and applied ones are skipped, so repeated calls are harmless. */ -// Disabled between migrations. To apply a new one: delete the next line and uncomment the ^migrate$ rule in .htaccess. -http_response_code(404); exit; - ini_set('display_errors', '0'); error_reporting(E_ALL); header('Content-Type: text/plain; charset=utf-8');