We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tasks
Position
int
x
i
UPDATE tasks SET position = position+1 WHERE posizione>=x;
edit the Position field to be a string
string
still order by it
when a new task is added at position x do the following:
task[x+1].Position - task[x].Position
ex:
|---------------|---------------| | name | position | |---------------|---------------| +---- inserting here will give "BM" | kek | "B" | | |---------------|---------------| <---+ | ciao | "C" | |---------------|---------------| ... |---------------|---------------| +---- inserting here will give "DT" | miao | "DM" | | |---------------|---------------| <---+ | miao | "F" | |---------------|---------------|
⚠️ Attention:
0x00000
0xFFFFF
max
min
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Solution 1
Position
field to be aint
x
increment by 1 the position of every taks which has a position greater or equal then thei
Solution 2
edit the
Position
field to be astring
still order by it
when a new task is added at position
x
do the following:task[x+1].Position - task[x].Position
ex:
0x00000
as min and0xFFFFF
as maxmax
andmin
value are off limits to leave space for appending to the head and tailThe text was updated successfully, but these errors were encountered: