mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Date precision (#6359)
* Remove month/year only formats from ParseDateStringAsTime * Add precision field to Date and handle parsing year/month-only dates * Add date precision columns for date columns * Adjust UI to account for fuzzy dates
This commit is contained in:
13
pkg/sqlite/migrations/75_date_precision.up.sql
Normal file
13
pkg/sqlite/migrations/75_date_precision.up.sql
Normal file
@@ -0,0 +1,13 @@
|
||||
ALTER TABLE "scenes" ADD COLUMN "date_precision" TINYINT;
|
||||
ALTER TABLE "images" ADD COLUMN "date_precision" TINYINT;
|
||||
ALTER TABLE "galleries" ADD COLUMN "date_precision" TINYINT;
|
||||
ALTER TABLE "groups" ADD COLUMN "date_precision" TINYINT;
|
||||
ALTER TABLE "performers" ADD COLUMN "birthdate_precision" TINYINT;
|
||||
ALTER TABLE "performers" ADD COLUMN "death_date_precision" TINYINT;
|
||||
|
||||
UPDATE "scenes" SET "date_precision" = 0 WHERE "date" IS NOT NULL;
|
||||
UPDATE "images" SET "date_precision" = 0 WHERE "date" IS NOT NULL;
|
||||
UPDATE "galleries" SET "date_precision" = 0 WHERE "date" IS NOT NULL;
|
||||
UPDATE "groups" SET "date_precision" = 0 WHERE "date" IS NOT NULL;
|
||||
UPDATE "performers" SET "birthdate_precision" = 0 WHERE "birthdate" IS NOT NULL;
|
||||
UPDATE "performers" SET "death_date_precision" = 0 WHERE "death_date" IS NOT NULL;
|
||||
Reference in New Issue
Block a user