stash/pkg/sqlite/migrations
2026-02-28 09:11:13 +11:00
..
1_initial.down.sql
1_initial.up.sql
2_cover_image.up.sql
3_o_counter.up.sql
4_movie.up.sql
5_performer_gender.down.sql
5_performer_gender.up.sql
6_scenes_format.up.sql
7_performer_optimization.up.sql
8_movie_fix.up.sql
9_studios_parent_studio.up.sql
10_image_tables.up.sql
11_tag_image.up.sql
12_oshash.up.sql
12_postmigrate.go
13_images.up.sql
14_stash_box_ids.up.sql
15_file_mod_time.up.sql
16_organized_flag.up.sql
17_reset_scene_size.up.sql
18_scene_galleries.up.sql
19_performer_tags.up.sql
20_phash.up.sql
21_performers_studios_details.up.sql
22_performers_studios_rating.up.sql
23_scenes_interactive.up.sql
24_tag_aliases.up.sql
25_saved_filters.up.sql
26_tag_hierarchy.up.sql
27_studio_aliases.up.sql
28_images_indexes.up.sql
29_interactive_speed.up.sql
30_ignore_autotag.up..sql
31_scenes_captions.up.sql
32_files.up.sql
32_postmigrate.go
32_premigrate.go
33_noop.up.sql
34_indexes.up.sql
34_postmigrate.go
35_assoc_tables.up.sql
36_tags_description.up.sql
37_iso_country_names.up.sql
38_scenes_director_code.up.sql
39_performer_height.up.sql
40_newratings.up.sql
41_scene_activity.up.sql
42_performer_disambig_aliases.up.sql
42_postmigrate.go
43_image_date_url.up.sql
44_gallery_chapters.up.sql
45_blobs.up.sql
45_postmigrate.go
46_penis_stats.up.sql
47_scene_urls.up.sql
48_cleanup.up.sql
48_premigrate.go
49_postmigrate.go
49_saved_filter_refactor.up.sql
50_image_urls.up.sql
51_gallery_urls.up.sql
52_postmigrate.go
52_zip_folder_data_correct.up.sql
53_gallery_photographer_code.up.sql
54_image_code_details_photographer.up.sql
55_manual_history.up.sql
55_postmigrate.go
56_studio_favorite.up.sql
57_tag_favorite.up.sql
58_config_correct.up.sql
58_postmigrate.go
59_movie_urls.up.sql
60_default_filter_move.up.sql
60_postmigrate.go
61_movie_tags.up.sql
62_performer_urls.up.sql
63_studio_tags.up.sql
64_fixes.up.sql
64_postmigrate.go
65_movie_group_rename.up.sql
65_postmigrate.go
66_gallery_cover.up.sql
67_group_relationships.up.sql
68_image_studio_index.up.sql
69_stash_id_updated_at.up.sql
70_markers_end.up.sql
71_custom_fields.up.sql
72_tag_sort_name.up.sql
73_studio_urls.up.sql
74_tag_stash_ids.up.sql
75_date_precision.up.sql
76_studio_custom_fields.up.sql
77_tag_custom_fields.up.sql
78_performer_career_dates.up.sql
78_postmigrate.go
79_scene_custom_fields.up.sql
80_studio_organized.up.sql
81_gallery_custom_fields.up.sql
82_group_custom_fields.up.sql Backend support for Group custom fields (#6596) 2026-02-23 11:53:12 +11:00
83_image_custom_fields.up.sql Backend support for image custom fields (#6598) 2026-02-24 07:41:40 +11:00
84_folder_basename.up.sql Add basename and parent_folders fields to Folder graphql interface (#6494) 2026-02-27 10:58:11 +11:00
84_postmigrate.go update logs and fix UNIQUE constraint failure (#6617) 2026-02-28 09:11:13 +11:00
custom_migration.go
README.md

Creating a migration

  1. Create new migration file in the migrations directory with the format NN_description.up.sql, where NN is the next sequential number.

  2. Update pkg/sqlite/database.go to update the appSchemaVersion value to the new migration number.

For migrations requiring complex logic or config file changes, see existing custom migrations for examples.