sunnyman's (sunnyman) wrote in changelog,
sunnyman's
sunnyman
changelog

[ljcom] r10581: OPSC-335: Alter userapps table to store ...

Committer: vtroitsky
OPSC-335: Alter userapps table to store application Payments API options.

U   trunk/bin/upgrading/update-db-local.pl
Modified: trunk/bin/upgrading/update-db-local.pl
===================================================================
--- trunk/bin/upgrading/update-db-local.pl	2011-05-30 09:05:27 UTC (rev 10580)
+++ trunk/bin/upgrading/update-db-local.pl	2011-05-31 04:32:40 UTC (rev 10581)
@@ -2038,6 +2038,20 @@
         });
     }
 
+    unless (column_type("userapps", "payments_callback")) {
+        do_alter("userapps", qq{
+            ALTER TABLE userapps
+                ADD COLUMN payments_callback VARCHAR(255) DEFAULT '';
+        });
+    }
+
+    unless (column_type("userapps", "payments_api")) {
+        do_alter("userapps", qq{
+            ALTER TABLE userapps
+                ADD COLUMN payments_api TINYINT(1) DEFAULT 0;
+        });
+    }
+
     unless (column_type("shop_userheads", "uh_desc")) {
         do_alter("shop_userheads",
                  "ALTER TABLE shop_userheads ADD uh_desc VARCHAR(20) DEFAULT '' AFTER uh_author");

Tags: ljcom, pl, sunnyman
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