diff options
| author | Birte Kristina Friesel <derf@finalrewind.org> | 2023-07-16 23:01:23 +0200 | 
|---|---|---|
| committer | Birte Kristina Friesel <derf@finalrewind.org> | 2023-07-16 23:01:23 +0200 | 
| commit | 19cd9f7a8d888302d8637af897d407fc34bab522 (patch) | |
| tree | 00f08bc56704ed8a952fefec9875979f5690b721 /lib/Travelynx/Command | |
| parent | 49beb0922935b81a152477933a7f7cd03c76a90c (diff) | |
account: add a list of sent follow requests
Diffstat (limited to 'lib/Travelynx/Command')
| -rw-r--r-- | lib/Travelynx/Command/database.pm | 19 | 
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/Travelynx/Command/database.pm b/lib/Travelynx/Command/database.pm index a0dea45..022614b 100644 --- a/lib/Travelynx/Command/database.pm +++ b/lib/Travelynx/Command/database.pm @@ -1761,6 +1761,25 @@ my @migrations = (  		}  		);  	}, + +	# v42 -> v43 +	# list sent and received follow requests +	sub { +		my ($db) = @_; +		$db->query( +			qq{ +				alter view follow_requests rename to rx_follow_requests; +				create view tx_follow_requests as select +					relations.subject_id as self_id, +					users.id as id, +					users.name as name +					from relations +					join users on relations.object_id = users.id +					where predicate = 2; +				update schema_version set version = 43; +			} +		); +	},  );  # TODO add 'hafas' column to in_transit (and maybe journeys? undo/redo needs something to work with...)  | 
