SQLite model refactoring (#3791)

* Remove ID from PerformerPartial
* Separate studio model from sqlite model
* Separate movie model from sqlite model
* Separate tag model from sqlite model
* Separate saved filter model from sqlite model
* Separate scene marker model from sqlite model
* Separate gallery chapter model from sqlite model
* Move ErrNoRows checks into sqlite, improve empty result error messages
* Move SQLiteDate and SQLiteTimestamp to sqlite
* Use changesetTranslator everywhere, refactor for consistency
* Make PerformerStore.DestroyImage private
* Fix rating on movie create
This commit is contained in:
DingDongSoLong4
2023-06-15 04:46:09 +02:00
committed by GitHub
parent 9180a68c45
commit 1c13c9e1b1
150 changed files with 3279 additions and 3129 deletions

View File

@@ -104,6 +104,11 @@ var (
},
fkColumn: galleriesScenesJoinTable.Col(sceneIDColumn),
}
galleriesChaptersTableMgr = &table{
table: goqu.T(galleriesChaptersTable),
idColumn: goqu.T(galleriesChaptersTable).Col(idColumn),
}
)
var (
@@ -241,3 +246,10 @@ var (
idColumn: goqu.T(blobTable).Col(blobChecksumColumn),
}
)
var (
savedFilterTableMgr = &table{
table: goqu.T(savedFilterTable),
idColumn: goqu.T(savedFilterTable).Col(idColumn),
}
)