forked from GNUsocial/gnu-social
[DB][NoteLocation] Add missing multiplicity
to column
This commit is contained in:
parent
9d12dde7c1
commit
9b42f525e8
@ -119,7 +119,7 @@ class NoteLocation extends Entity
|
|||||||
return [
|
return [
|
||||||
'name' => 'activity_location',
|
'name' => 'activity_location',
|
||||||
'fields' => [
|
'fields' => [
|
||||||
'note_id' => ['type' => 'int', 'foreign key' => true, 'target' => 'Note.id', 'name' => 'note_location_note_id_fkey', 'not null' => true, 'description' => 'activity this refers to'],
|
'note_id' => ['type' => 'int', 'foreign key' => true, 'target' => 'Note.id', 'multiplicity' => 'one to one', 'name' => 'note_location_note_id_fkey', 'not null' => true, 'description' => 'activity this refers to'],
|
||||||
'lat' => ['type' => 'numeric', 'precision' => 10, 'scale' => 7, 'description' => 'latitude'],
|
'lat' => ['type' => 'numeric', 'precision' => 10, 'scale' => 7, 'description' => 'latitude'],
|
||||||
'lon' => ['type' => 'numeric', 'precision' => 10, 'scale' => 7, 'description' => 'longitude'],
|
'lon' => ['type' => 'numeric', 'precision' => 10, 'scale' => 7, 'description' => 'longitude'],
|
||||||
'location_id' => ['type' => 'int', 'description' => 'location id if possible'],
|
'location_id' => ['type' => 'int', 'description' => 'location id if possible'],
|
||||||
|
Loading…
Reference in New Issue
Block a user