Skip to content
代码片段 群组 项目
未验证 提交 d2924145 编辑于 作者: Daniyal Arshad's avatar Daniyal Arshad 提交者: GitLab
浏览文件

Drop the editor feild from the workspaces table

- Migration to remove editor column

Changelog: changed
EE: true
上级 a096d1db
No related branches found
No related tags found
无相关合并请求
# frozen_string_literal: true
class RemoveWorkspacesEditorColumn < Gitlab::Database::Migration[2.2]
milestone '17.6'
def up
remove_column :workspaces, :editor
end
def down
add_column :workspaces, :editor, :text, limit: 256, default: 'webide', null: false
end
end
2f9540b1e1a298b20bcc5a6a284e293b5ec62cba0c851d33815c5e1cc48d6143
\ No newline at end of file
...@@ -21344,7 +21344,6 @@ CREATE TABLE workspaces ( ...@@ -21344,7 +21344,6 @@ CREATE TABLE workspaces (
namespace text NOT NULL, namespace text NOT NULL,
desired_state text NOT NULL, desired_state text NOT NULL,
actual_state text NOT NULL, actual_state text NOT NULL,
editor text DEFAULT 'webide'::text NOT NULL,
devfile_ref text NOT NULL, devfile_ref text NOT NULL,
devfile_path text NOT NULL, devfile_path text NOT NULL,
devfile text, devfile text,
...@@ -21369,7 +21368,6 @@ CREATE TABLE workspaces ( ...@@ -21369,7 +21368,6 @@ CREATE TABLE workspaces (
CONSTRAINT check_8e4db5ffc2 CHECK ((char_length(actual_state) <= 32)), CONSTRAINT check_8e4db5ffc2 CHECK ((char_length(actual_state) <= 32)),
CONSTRAINT check_9e42558c35 CHECK ((char_length(url) <= 1024)), CONSTRAINT check_9e42558c35 CHECK ((char_length(url) <= 1024)),
CONSTRAINT check_b70eddcbc1 CHECK ((char_length(desired_state) <= 32)), CONSTRAINT check_b70eddcbc1 CHECK ((char_length(desired_state) <= 32)),
CONSTRAINT check_d7ed376e49 CHECK ((char_length(editor) <= 256)),
CONSTRAINT check_dc58d56169 CHECK ((char_length(devfile_path) <= 2048)), CONSTRAINT check_dc58d56169 CHECK ((char_length(devfile_path) <= 2048)),
CONSTRAINT check_eb32879a3d CHECK ((char_length(devfile) <= 65535)), CONSTRAINT check_eb32879a3d CHECK ((char_length(devfile) <= 65535)),
CONSTRAINT check_ffa8cad434 CHECK ((char_length(url_prefix) <= 256)) CONSTRAINT check_ffa8cad434 CHECK ((char_length(url_prefix) <= 256))
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册