holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[ljcom] r11638: LJSUP-11372: Develop regional self promo...

Committer: akanashin
LJSUP-11372: Develop regional self promo for Ukraine
U   trunk/bin/upgrading/update-db-local.pl
Modified: trunk/bin/upgrading/update-db-local.pl
===================================================================
--- trunk/bin/upgrading/update-db-local.pl	2012-03-26 18:53:05 UTC (rev 11637)
+++ trunk/bin/upgrading/update-db-local.pl	2012-03-27 07:49:12 UTC (rev 11638)
@@ -2397,13 +2397,13 @@
         );
     }
 
-    $type_column = column_type('selfpromo', 'country');
+    $type_column = column_type('selfpromo', 'country') || '';
     if ($type_column eq "" ) {
         do_alter(
             'selfpromo',
             "ALTER TABLE selfpromo ADD COLUMN country char(3) NOT NULL DEFAULT 'cyr'",
         );
-    } elsif ( $type_column !~ /cyr/i ) {
+    } elsif ( $type_column =~ /enum/ ) {
         do_alter(
             'selfpromo',
             "ALTER TABLE selfpromo MODIFY COLUMN country char(3) NOT NULL DEFAULT 'cyr'",

Tags: akanashin, holyandrew, ljcom, pl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments