mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Organised flag (#988)
* Add organized boolean to scene model (#729) * Add organized button to scene page * Add flag to galleries and images * Import/export changes * Make organized flag not null * Ignore organized scenes for autotag Co-authored-by: com1234 <com1234@notarealemail.com>
This commit is contained in:
@@ -20,7 +20,7 @@ import (
|
||||
|
||||
var DB *sqlx.DB
|
||||
var dbPath string
|
||||
var appSchemaVersion uint = 15
|
||||
var appSchemaVersion uint = 16
|
||||
var databaseSchemaVersion uint
|
||||
|
||||
const sqlite3Driver = "sqlite3ex"
|
||||
|
||||
3
pkg/database/migrations/16_organized_flag.up.sql
Normal file
3
pkg/database/migrations/16_organized_flag.up.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
ALTER TABLE `scenes` ADD COLUMN `organized` boolean not null default '0';
|
||||
ALTER TABLE `images` ADD COLUMN `organized` boolean not null default '0';
|
||||
ALTER TABLE `galleries` ADD COLUMN `organized` boolean not null default '0';
|
||||
Reference in New Issue
Block a user