aboutsummaryrefslogtreecommitdiffhomepage
path: root/migrations
diff options
context:
space:
mode:
authorwinter2024-12-10 18:29:57 +0000
committerwinter2024-12-10 18:29:57 +0000
commitae37b73d1f15ffe5c4c9a32c5de349cd746ebc48 (patch)
tree525c6f5f2e8996be383e4ff62c574cb35239c8fb /migrations
parent4c7bde1400820f36caf8b2a5374007384c3018f3 (diff)
cache webfinger lookups
Diffstat (limited to 'migrations')
-rw-r--r--migrations/20241210_181118_create_actor_webfinger.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/migrations/20241210_181118_create_actor_webfinger.php b/migrations/20241210_181118_create_actor_webfinger.php
new file mode 100644
index 0000000..6b6c497
--- /dev/null
+++ b/migrations/20241210_181118_create_actor_webfinger.php
@@ -0,0 +1,13 @@
+<?php
+
+use \Digitigrade\Db\Migrator;
+
+Migrator::getInstance()->register(20241210_181118, function (PDO $db) {
+ // webfinger lookup cache for actors
+ $db->exec(<<<END
+ CREATE TABLE actor_webfinger (
+ acct text primary key,
+ actor bigint not null references actor
+ );
+ END);
+});