diff --git a/db/post_migrate/20241001185217_remove_workspaces_editor_column.rb b/db/post_migrate/20241001185217_remove_workspaces_editor_column.rb new file mode 100644 index 0000000000000000000000000000000000000000..5c74367d01c7efdf3d3f288072727a09ba74498d --- /dev/null +++ b/db/post_migrate/20241001185217_remove_workspaces_editor_column.rb @@ -0,0 +1,13 @@ +# 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 diff --git a/db/schema_migrations/20241001185217 b/db/schema_migrations/20241001185217 new file mode 100644 index 0000000000000000000000000000000000000000..a7f81d70cc120f72df01ab2fa32e08992c20f59a --- /dev/null +++ b/db/schema_migrations/20241001185217 @@ -0,0 +1 @@ +2f9540b1e1a298b20bcc5a6a284e293b5ec62cba0c851d33815c5e1cc48d6143 \ No newline at end of file diff --git a/db/structure.sql b/db/structure.sql index 5b2ac770acc31c41ee01c55e3415d5a1359879e4..4cb908f89fcb0c961b6ce08276b55d117a92ea05 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -21344,7 +21344,6 @@ CREATE TABLE workspaces ( namespace text NOT NULL, desired_state text NOT NULL, actual_state text NOT NULL, - editor text DEFAULT 'webide'::text NOT NULL, devfile_ref text NOT NULL, devfile_path text NOT NULL, devfile text, @@ -21369,7 +21368,6 @@ CREATE TABLE workspaces ( CONSTRAINT check_8e4db5ffc2 CHECK ((char_length(actual_state) <= 32)), CONSTRAINT check_9e42558c35 CHECK ((char_length(url) <= 1024)), 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_eb32879a3d CHECK ((char_length(devfile) <= 65535)), CONSTRAINT check_ffa8cad434 CHECK ((char_length(url_prefix) <= 256))