-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
rename board => column in projects #20985
New issue
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
Closed
anbraten
wants to merge
16
commits into
go-gitea:main
from
anbraten:anbraten/kanban-board-naming-is-13802
Closed
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
d4b16c5
rename board => column
anbraten 15ed6d8
format
anbraten b183a9f
further renames
anbraten 72db730
add migration
anbraten 447491b
adjust some js code
anbraten b0ecc16
rename
anbraten da563e7
update translations
anbraten f6b28aa
update style and js
anbraten ae5d739
fix js and css
anbraten eb8c938
Merge remote-tracking branch 'upstream/main' into anbraten/kanban-boa…
anbraten 0f6f348
fix css
anbraten c65a507
Merge branch 'main' into anbraten/kanban-board-naming-is-13802
anbraten 0d648a7
Merge branch 'main' into anbraten/kanban-board-naming-is-13802
anbraten e17ccb2
add migration helpers
anbraten 951c7a0
Merge branch 'anbraten/kanban-board-naming-is-13802' of https://githu…
anbraten 9b1dfaa
format
anbraten File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Copyright 2022 The Gitea Authors. All rights reserved. | ||
// Use of this source code is governed by a MIT-style | ||
// license that can be found in the LICENSE file. | ||
|
||
package migrations | ||
|
||
import ( | ||
"xorm.io/xorm" | ||
) | ||
|
||
func renameProjectBoardsToColumns(x *xorm.Engine) error { | ||
sess := x.NewSession() | ||
defer sess.Close() | ||
if err := sess.Begin(); err != nil { | ||
return err | ||
} | ||
|
||
if err := renameTable(sess, "project_board", "project_column"); err != nil { | ||
return err | ||
} | ||
|
||
if err := renameColumn(sess, "project_issue", "project_board_id", "project_column_id"); err != nil { | ||
return err | ||
} | ||
|
||
return sess.Commit() | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.