diff options
| author | winter | 2024-12-08 18:04:37 +0000 |
|---|---|---|
| committer | winter | 2024-12-08 18:04:37 +0000 |
| commit | b00185ddbac9ac3de975a3954f2ede2f24458f6a (patch) | |
| tree | 265ccaae497e2788ed7de8f6b08a0d5a77ea16dc /migrations/20241208_165411_create_note_mentions.php | |
| parent | 13647d55bd8085a2b3a686b8aad3b28b0faf693a (diff) | |
implement notes
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); +}); |
