mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Saved filters (#1474)
* Refactor list filter * Filter/criterion refactor * Rename option value to type * Remove None from options * Add saved filter button * Integrate default filters
This commit is contained in:
@@ -23,7 +23,7 @@ import (
|
||||
var DB *sqlx.DB
|
||||
var WriteMu *sync.Mutex
|
||||
var dbPath string
|
||||
var appSchemaVersion uint = 24
|
||||
var appSchemaVersion uint = 25
|
||||
var databaseSchemaVersion uint
|
||||
|
||||
var (
|
||||
|
||||
8
pkg/database/migrations/25_saved_filters.up.sql
Normal file
8
pkg/database/migrations/25_saved_filters.up.sql
Normal file
@@ -0,0 +1,8 @@
|
||||
CREATE TABLE `saved_filters` (
|
||||
`id` integer not null primary key autoincrement,
|
||||
`name` varchar(510) not null,
|
||||
`mode` varchar(255) not null,
|
||||
`filter` blob not null
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX `index_saved_filters_on_mode_name_unique` on `saved_filters` (`mode`, `name`);
|
||||
Reference in New Issue
Block a user