From: Mikael Nordfeldth Date: Wed, 27 May 2015 20:37:20 +0000 (+0200) Subject: urlhash will _be_ NULL on update, so NOT NULL won't work X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;ds=sidebyside;h=f926e27a652fa2a82241b2bbe2216b505d900465;p=quix0rs-gnu-social.git urlhash will _be_ NULL on update, so NOT NULL won't work --- diff --git a/classes/File.php b/classes/File.php index 9a8f9eaf53..594506449a 100644 --- a/classes/File.php +++ b/classes/File.php @@ -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 (