⚠️ Version 0.10.0 contains a new database migration, version 5. See documentation on running River migrations. If migrating with the CLI, make sure to update it to its latest version:
go install github.com/riverqueue/river/cmd/river@latest
river migrate-up --database-url "$DATABASE_URL"The migration includes a new index. Users with a very large job table may want to consider raising the index separately using CONCURRENTLY (which must be run outside of a transaction), then run river migrate-up to finalize the process (it will tolerate an index that already exists):
ALTER TABLE river_job ADD COLUMN unique_key bytea; CREATE UNIQUE INDEX CONCURRENTLY river_job_kind_unique_key_idx ON river_job (kind, unique_key) WHERE unique_key IS NOT NULL;
go install github.com/riverqueue/river/cmd/river@latest
river migrate-up --database-url "$DATABASE_URL"Added
- Fully functional driver for
database/sqlfor use with packages like Bun and GORM. PR #351. - Queues can be added after a client is initialized using
client.Queues().Add(queueName string, queueConfig QueueConfig). PR #410. - Migration that adds a
linecolumn to theriver_migrationtable so that it can support multiple migration lines. PR #435. --lineflag added to the River CLI. PR #454.