Mercurial > hg > cmmr2012-drupal-site
comparison core/modules/user/src/UserStorageSchema.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | a9cd425dd02b |
children |
comparison
equal
deleted
inserted
replaced
4:a9cd425dd02b | 5:12f9dff5fda9 |
---|---|
49 // Improves the performance of the user__name index defined | 49 // Improves the performance of the user__name index defined |
50 // in getEntitySchema(). | 50 // in getEntitySchema(). |
51 $schema['fields'][$field_name]['not null'] = TRUE; | 51 $schema['fields'][$field_name]['not null'] = TRUE; |
52 // Make sure the field is no longer than 191 characters so we can | 52 // Make sure the field is no longer than 191 characters so we can |
53 // add a unique constraint in MySQL. | 53 // add a unique constraint in MySQL. |
54 $schema['fields'][$field_name]['length'] = USERNAME_MAX_LENGTH; | 54 $schema['fields'][$field_name]['length'] = UserInterface::USERNAME_MAX_LENGTH; |
55 break; | 55 break; |
56 | 56 |
57 case 'mail': | 57 case 'mail': |
58 $this->addSharedTableFieldIndex($storage_definition, $schema); | 58 $this->addSharedTableFieldIndex($storage_definition, $schema); |
59 break; | 59 break; |