-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Changes from 11 commits
d4b16c5
15ed6d8
b183a9f
72db730
447491b
b0ecc16
da563e7
f6b28aa
ae5d739
eb8c938
0f6f348
c65a507
0d648a7
e17ccb2
951c7a0
9b1dfaa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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 := sess.Exec("ALTER TABLE `project_board` RENAME TO `project_column`;"); err != nil { | ||
| return err | ||
| } | ||
|
|
||
| if _, err := sess.Exec("ALTER TABLE `project_issue` RENAME COLUMN `project_board_id` TO `project_column_id`;"); err != nil { | ||
|
||
| return err | ||
| } | ||
|
|
||
| return sess.Commit() | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.