mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 01:37:02 +02:00
added tagging the search results
This commit is contained in:
@ -94,6 +94,10 @@ create table if not exists `attachment` (
|
||||
|
||||
create index `attachment_idx` on `attachment`(`piler_id`);
|
||||
create index `attachment_idx2` on `attachment`(`sig`);
|
||||
create index `attachment_idx3` on `attachment`(`ptr`);
|
||||
|
||||
drop view if exists `v_attachment`;
|
||||
create view `v_attachment` AS select `id` as `i`, `piler_id`, `attachment_id`, `ptr`, (select count(*) from `attachment` where `ptr`=`i`) as `refcount` from `attachment`;
|
||||
|
||||
|
||||
drop table if exists `tag`;
|
||||
|
Reference in New Issue
Block a user