nextcloud / nextcloud/files_lock

Migrate int to bigint

Open
#484 0 comments 0 reactions 1 assignee View on GitHub

@juliusknorr is already working on this.

Since Jan 10, 2025.

1. to develop bug high
Dominant language
JavaScript
Stars
39
Forks
10
Avg merge
1d 11h
Merged PRs (30d)
48

Description

Seems we still have integer columns which especially for file_id in large instances can easily be exceeded.

We should add a migration to fix this:

ALTER TABLE `oc_files_lock` 
	CHANGE `id` `id` BIGINT(20) unsigned NOT NULL AUTO_INCREMENT,
	CHANGE `file_id` `file_id` BIGINT(20) unsigned NOT NULL
	;

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.