From: Thomas Minvielle Date: Sun, 23 Feb 2014 12:32:47 +0000 (+0100) Subject: Drop NAF_code when inappropriate. X-Git-Tag: xorg/1.1.12~23 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=fda78a6777a5f385537fc9f291afb310e12525e5;p=platal.git Drop NAF_code when inappropriate. --- diff --git a/upgrade/1.1.12/05_drop_job_NAF_code.sql b/upgrade/1.1.12/05_drop_job_NAF_code.sql new file mode 100644 index 0000000..e132508 --- /dev/null +++ b/upgrade/1.1.12/05_drop_job_NAF_code.sql @@ -0,0 +1 @@ +UPDATE profile_job_enum SET NAF_code = NULL WHERE NAF_code NOT REGEXP '^[0-9]{4}[a-z]$';