mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-09-08 12:56:36 +00:00
95ea248518
Add migration to fix typo Add support for linking hashtags with posts Rework tag search page so it says a nicer message than page not found when no post use that tag Add new string to translation
11 lines
311 B
SQL
11 lines
311 B
SQL
CREATE TABLE tags2 (
|
|
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
|
tag TEXT NOT NULL DEFAULT '',
|
|
is_hastag BOOLEAN NOT NULL DEFAULT 'f',
|
|
post_id INTEGER REFERENCES posts(id) ON DELETE CASCADE NOT NULL
|
|
);
|
|
|
|
INSERT INTO tags2 SELECT * FROM tags;
|
|
DROP TABLE tags;
|
|
ALTER TABLE tags2 RENAME TO tags;
|