release fixes

Change-Id: Iec29962d9694cb766eba5093c1fb64453ffe9d92
Signed-off-by: SJ <sj@acts.hu>
This commit is contained in:
SJ 2016-10-17 21:54:12 +02:00
parent 5bfbdf2528
commit 56497eaef2
2 changed files with 13 additions and 0 deletions

12
bitbucket-pipelines.yml Normal file
View File

@ -0,0 +1,12 @@
# This is a sample build configuration for all languages.
# Check our guides at https://confluence.atlassian.com/x/VYk8Lw for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
# image: docker-image:tag
pipelines:
default:
- step:
script:
- echo "Everything is awesome!"

View File

@ -91,6 +91,7 @@ create table if not exists `attachment` (
create index `attachment_idx` on `attachment`(`piler_id`); create index `attachment_idx` on `attachment`(`piler_id`);
create index `attachment_idx2` on `attachment`(`sig`, `size`, `ptr`); create index `attachment_idx2` on `attachment`(`sig`, `size`, `ptr`);
create index `attachment_idx3` on `attachment`(`ptr`);
drop view if exists `v_attachment`; 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`; 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`;