]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Upgrading from 1.1.x would make uri fields have length=255
authorMikael Nordfeldth <mmn@hethane.se>
Tue, 15 Mar 2016 15:52:57 +0000 (16:52 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Tue, 15 Mar 2016 15:54:10 +0000 (16:54 +0100)
plugins/ActivityModeration/classes/Deleted_notice.php
plugins/Event/classes/RSVP.php

index 4ffc0c895fe804f3c9229f986ea6b990aa5dded0..af31b6dbefae8a3f30da2f8a6dfb2def203d4a82 100644 (file)
@@ -193,6 +193,7 @@ class Deleted_notice extends Managed_DataObject
             echo "\nFound old $table table, upgrading it to add 'act_created' field...";
 
             $schemadef['fields']['act_created'] = array('type' => 'datetime', 'not null' => true, 'description' => 'datetime the notice record was created');
+            $schemadef['fields']['uri']['length'] = 191;    // we likely don't have to discover too long keys here
             $schema->ensureTable($table, $schemadef);
 
             $deleted = new Deleted_notice();
index 84cbd624dc428f0c854c439a25f002605f87d74c..f2ab8f0aa3e81845aef66bd885daeb8a74739f4b 100644 (file)
@@ -107,6 +107,7 @@ class RSVP extends Managed_DataObject
         echo "\nFound old $table table, upgrading it to add 'event_uri' field...";
 
         $schemadef['fields']['event_uri'] = array('type' => 'varchar', 'length' => 191, 'not null' => true, 'description' => 'Event URI');
+        $schemadef['fields']['uri']['length'] = 191;    // we likely don't have to discover too long keys here
         $schema->ensureTable($table, $schemadef);
 
         $rsvp = new RSVP();