Preparations for a new tag structure. Tags are now stored in a dedicated table.
This commit is contained in:
parent
82820d8e95
commit
61c78711df
8 changed files with 214 additions and 77 deletions
14
database.sql
14
database.sql
|
@ -1118,3 +1118,17 @@ CREATE TABLE IF NOT EXISTS `userd` (
|
|||
`username` char(255) NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `tag`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `tag` (
|
||||
`iid` int(11) NOT NULL,
|
||||
`tag` char(255) NOT NULL,
|
||||
`link` char(255) NOT NULL,
|
||||
PRIMARY KEY (`iid`, `tag`),
|
||||
KEY `tag` (`tag`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue