diff --git a/db/migrate/20250305000001_add_actual_state_updated_at_to_workspaces.rb b/db/migrate/20250305000001_add_actual_state_updated_at_to_workspaces.rb new file mode 100644 index 0000000000000000000000000000000000000000..349129dfbd59d4e2a235c2f2f6ba73538c21a328 --- /dev/null +++ b/db/migrate/20250305000001_add_actual_state_updated_at_to_workspaces.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +class AddActualStateUpdatedAtToWorkspaces < Gitlab::Database::Migration[2.2] + milestone '17.11' + + def change + add_column :workspaces, :actual_state_updated_at, :datetime_with_timezone, null: false, default: '1970-01-01' + end +end diff --git a/db/schema_migrations/20250305000001 b/db/schema_migrations/20250305000001 new file mode 100644 index 0000000000000000000000000000000000000000..fea6d4a994352739ec630230e769531a5dbaa805 --- /dev/null +++ b/db/schema_migrations/20250305000001 @@ -0,0 +1 @@ +9f7a9198505162ceb254c9c9ed141395be5a34306e0619c9f1ef4ae0323fc8c7 \ No newline at end of file diff --git a/db/structure.sql b/db/structure.sql index e320d2edfdfe823a1c3f898ccb49632f09ad2469..a64f166d769df51620ec1500be5acef436eb538c 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -24660,6 +24660,7 @@ CREATE TABLE workspaces ( workspaces_agent_config_version integer NOT NULL, desired_config_generator_version integer, project_ref text, + actual_state_updated_at timestamp with time zone DEFAULT '1970-01-01 00:00:00+00'::timestamp with time zone NOT NULL, CONSTRAINT check_15543fb0fa CHECK ((char_length(name) <= 64)), CONSTRAINT check_157d5f955c CHECK ((char_length(namespace) <= 64)), CONSTRAINT check_2b401b0034 CHECK ((char_length(deployment_resource_version) <= 64)),