Skip to content

Commit 1c6781a

Browse files
committed
Ensure subscription handling happens before table deletion
Signed-off-by: Matt Friedman <maf675@gmail.com>
1 parent 49d8d74 commit 1c6781a

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

migrations/add_webpush.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function effectively_installed(): bool
2121

2222
public static function depends_on()
2323
{
24-
return ['\phpbb\webpushnotifications\migrations\handle_subscriptions'];
24+
return ['\phpbb\db\migration\data\v33x\v3312rc1'];
2525
}
2626

2727
public function update_schema(): array

migrations/handle_subscriptions.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414

1515
class handle_subscriptions extends migration
1616
{
17+
public static function depends_on()
18+
{
19+
return ['\phpbb\webpushnotifications\migrations\add_webpush'];
20+
}
21+
1722
public function effectively_installed()
1823
{
1924
return !$this->db_tools->sql_table_exists($this->table_prefix . 'wpn_notification_push');

0 commit comments

Comments
 (0)