urlhash will _be_ NULL on update, so NOT NULL won't work

This commit is contained in:
Mikael Nordfeldth 2015-05-27 22:37:20 +02:00
parent c31d6608a8
commit f926e27a65
1 changed files with 1 additions and 1 deletions

View 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 (