summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Command
diff options
context:
space:
mode:
authorDerf Null <derf@finalrewind.org>2023-06-03 10:42:14 +0200
committerDerf Null <derf@finalrewind.org>2023-06-03 10:42:14 +0200
commitd4a647014194d635d1025f83e595138c71db9c1d (patch)
tree6bc9bfd5ade9b4dc6c48b2e24d399a776c544e70 /lib/Travelynx/Command
parentb2feb1b664c575ce04a4a00c1a860ef07dae732d (diff)
Users: support notifications about pending follow requests
Diffstat (limited to 'lib/Travelynx/Command')
-rw-r--r--lib/Travelynx/Command/database.pm29
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/Travelynx/Command/database.pm b/lib/Travelynx/Command/database.pm
index f906cb5..53168bf 100644
--- a/lib/Travelynx/Command/database.pm
+++ b/lib/Travelynx/Command/database.pm
@@ -1518,8 +1518,37 @@ my @migrations = (
}
);
},
+
+ # v35 -> v36
+ sub {
+ my ($db) = @_;
+ $db->query(
+ qq{
+ alter table relations
+ add column ts timestamptz not null;
+ alter table users
+ add column accept_follows smallint default 1;
+ update schema_version set version = 36;
+ }
+ );
+ },
+
+ # v36 -> v37
+ sub {
+ my ($db) = @_;
+ $db->query(
+ qq{
+ alter table users
+ add column notifications smallint default 0,
+ add column profile jsonb;
+ update schema_version set version = 37;
+ }
+ );
+ },
);
+# TODO add 'hafas' column to in_transit (and maybe journeys? undo/redo needs something to work with...)
+
sub sync_stations {
my ( $db, $iris_version ) = @_;