diff options
| author | winter | 2024-12-17 18:39:18 +0000 |
|---|---|---|
| committer | winter | 2024-12-17 18:39:18 +0000 |
| commit | 085762ec174eae1c519ec14db632f5ba197ed3c7 (patch) | |
| tree | 9ad49bc839b5f72ded47c119ff01a09dfa0b934a /migrations | |
| parent | bc2cd99b108b8755a648c3915714e7c0e0771548 (diff) | |
hopefully implement push!
again i can't really test this yet because i don't have two https instances that can talk to each other.
soon i will set that up and test all these recent commits
Diffstat (limited to 'migrations')
| -rw-r--r-- | migrations/20241217_165550_add_instance_auth_push_eligibility.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/migrations/20241217_165550_add_instance_auth_push_eligibility.php b/migrations/20241217_165550_add_instance_auth_push_eligibility.php new file mode 100644 index 0000000..ebf2a47 --- /dev/null +++ b/migrations/20241217_165550_add_instance_auth_push_eligibility.php @@ -0,0 +1,11 @@ +<?php + +use \Digitigrade\Db\Migrator; + +Migrator::getInstance()->register(20241217_165550, function (PDO $db) { + // whether we are allowed to push / receive pushes for a given instance + $db->exec(<<<END + ALTER TABLE instance_auth ADD COLUMN outbound_push_enabled boolean not null default false; + ALTER TABLE instance_auth ADD COLUMN inbound_push_enabled boolean not null default false; + END); +}); |
