Commit be0ad97a authored by mitshel's avatar mitshel
Browse files

Изменено индексирование по полям cat_name, path. Теперь поле path...

Изменено индексирование по полям cat_name, path. Теперь поле path индексируется только по первым 256 символам.
Для совместимости с версиями mysql не поддерживающими Индексы более 1000 байт.
parent bd09983d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
covers/*
*.fb2
*.log
*.swp
py/__pycache__/*
py/ziptest.py
py/fb2parse.py
+1 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ cat_name VARCHAR(64),
path VARCHAR(1024),
cat_type INT not null DEFAULT 0,
PRIMARY KEY(cat_id),
KEY(cat_name,path));
KEY(cat_name,path(256)));
commit;

drop table if exists authors;
+2 −2
Original line number Diff line number Diff line
update dbver set ver="0.18";
create index idx_path on books(path);
create index idx_cat0 on catalogs(cat_name,path);
create index idx_path on books(path(256));
create index idx_cat0 on catalogs(cat_name,path(256));
create index idx_books_catid on books(cat_id);
commit;
−12 KiB

File deleted.