]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
urlhash will _be_ NULL on update, so NOT NULL won't work
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 27 May 2015 20:37:20 +0000 (22:37 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 27 May 2015 20:37:20 +0000 (22:37 +0200)
classes/File.php

index 9a8f9eaf53b6786438184f1a66a5767e41408027..594506449a3387bfe726fe3257c02e2de5a36464 100644 (file)
@@ -648,7 +648,7 @@ class File extends Managed_DataObject
         $schemadef['fields']['urlhash'] = array (
                                               'type' => 'varchar',
                                               'length' => 64,
-                                              'not null' => true,
+                                              'not null' => false,  // this is because when adding column, all entries will _be_ NULL!
                                               'description' => 'sha256 of destination URL (url field)',
                                             );
         $schemadef['fields']['url'] = array (