aboutsummaryrefslogtreecommitdiffhomepage
path: root/migrations/20241217_200610_add_actor_avatar.php
diff options
context:
space:
mode:
authorwinter2024-12-17 20:07:20 +0000
committerwinter2024-12-17 20:08:56 +0000
commit12d3fe4509dda610e6b7adb120dc0530081c6768 (patch)
tree6ce9763f0722576451a097ab19ab59213a1e2827 /migrations/20241217_200610_add_actor_avatar.php
parent7cb4ef6c6b82bbca3300154ae89a7bb05c1d91cd (diff)
fix database/model discrepancies
add avatar column for actor table, remove (un)subscribe fields from ActorEndpoints model
Diffstat (limited to 'migrations/20241217_200610_add_actor_avatar.php')
-rw-r--r--migrations/20241217_200610_add_actor_avatar.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/migrations/20241217_200610_add_actor_avatar.php b/migrations/20241217_200610_add_actor_avatar.php
new file mode 100644
index 0000000..09af758
--- /dev/null
+++ b/migrations/20241217_200610_add_actor_avatar.php
@@ -0,0 +1,8 @@
+<?php
+
+use \Digitigrade\Db\Migrator;
+
+Migrator::getInstance()->register(20241217_200610, function (PDO $db) {
+ // i really have no idea why this wasn't the case already?
+ $db->exec('ALTER TABLE actor ADD COLUMN avatar text');
+});