diff options
Diffstat (limited to 'migrations/20241208_165411_create_note_mentions.php')
| -rw-r--r-- | migrations/20241208_165411_create_note_mentions.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/migrations/20241208_165411_create_note_mentions.php b/migrations/20241208_165411_create_note_mentions.php new file mode 100644 index 0000000..f589161 --- /dev/null +++ b/migrations/20241208_165411_create_note_mentions.php @@ -0,0 +1,14 @@ +<?php + +use \WpfTest\Db\Migrator; + +Migrator::getInstance()->register(20241208_165411, function (PDO $db) { + // forgot this table in create_note :( + $db->exec(<<<END + CREATE TABLE note_mention ( + note_id bigint not null references note(id), + actor_id bigint not null references actor(id), + unique(note_id, actor_id) + ); + END); +}); |
