Add support for hashtag on user interface
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
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
-- This file should undo anything in `up.sql`
|
||||
ALTER TABLE tags RENAME COLUMN is_hashtag TO is_hastag;
|
||||
@@ -0,0 +1 @@
|
||||
ALTER TABLE tags RENAME COLUMN is_hastag TO is_hashtag;
|
||||
@@ -0,0 +1,10 @@
|
||||
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;
|
||||
@@ -0,0 +1,10 @@
|
||||
CREATE TABLE tags2 (
|
||||
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
||||
tag TEXT NOT NULL DEFAULT '',
|
||||
is_hashtag 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;
|
||||
Reference in New Issue
Block a user