feat(sync): paginate Android sync with change tokens
This commit is contained in:
1 parent
0ff94f9b10
commit
97c237be80
76 files changed
+3401
-851
No files matched your search
@@ -31,6 +31,7 @@ func (c *Core) Migrate(ctx context.Context) error {
|
||||
var migrationStatements = []string{
|
||||
`CREATE EXTENSION IF NOT EXISTS pgcrypto`,
|
||||
`CREATE EXTENSION IF NOT EXISTS pg_trgm`,
|
||||
`DROP INDEX IF EXISTS media_search_idx`,
|
||||
|
||||
`CREATE TABLE IF NOT EXISTS users (
|
||||
id BIGSERIAL PRIMARY KEY,
|
||||
@@ -85,7 +86,6 @@ var migrationStatements = []string{
|
||||
`ALTER TABLE media ADD COLUMN IF NOT EXISTS funscript_max_speed REAL`,
|
||||
`CREATE INDEX IF NOT EXISTS media_active_idx ON media (active)`,
|
||||
`CREATE INDEX IF NOT EXISTS media_file_path_idx ON media (file_path)`,
|
||||
`CREATE INDEX IF NOT EXISTS media_search_idx ON media USING GIN (to_tsvector('simple', COALESCE(title, '') || ' ' || COALESCE(original_filename, '') || ' ' || COALESCE(file_path, '')))`,
|
||||
`CREATE INDEX IF NOT EXISTS media_active_type_idx ON media (active, media_type)`,
|
||||
|
||||
`CREATE TABLE IF NOT EXISTS media_stats (
|
||||
|
||||
Reference in new issue
Block a user