[ENTITY] Remove 'normalized_nickname' field from GSActor as that feature will be moved to a plugin

This commit is contained in:
Hugo Sales 2021-07-28 21:20:32 +00:00
parent 2f69579ddb
commit e77498ac19
No known key found for this signature in database
GPG Key ID: 7D0C7EAFC9D835A0

View File

@ -297,7 +297,6 @@ class GSActor extends Entity
'fields' => [
'id' => ['type' => 'serial', 'not null' => true, 'description' => 'unique identifier'],
'nickname' => ['type' => 'varchar', 'length' => 64, 'not null' => true, 'description' => 'nickname or username'],
'normalized_nickname' => ['type' => 'varchar', 'length' => 64, 'not null' => true, 'description' => 'normalized (as per Nickanme::normalize) nickname or username'],
'fullname' => ['type' => 'text', 'description' => 'display name'],
'roles' => ['type' => 'int', 'not null' => true, 'default' => UserRoles::USER, 'description' => 'Bitmap of permissions this gsactor has'],
'homepage' => ['type' => 'text', 'description' => 'identifying URL'],
@ -313,7 +312,6 @@ class GSActor extends Entity
'primary key' => ['id'],
'indexes' => [
'gsactor_nickname_idx' => ['nickname'],
'gsactor_normalized_nickname_idx' => ['normalized_nickname'],
],
'fulltext indexes' => [
'gsactor_fulltext_idx' => ['nickname', 'fullname', 'location', 'bio', 'homepage'],