Change asset estimated_size to bigint [SCI-8229] (#5304)

This commit is contained in:
ajugo 2023-04-25 15:13:50 +02:00 committed by GitHub
parent 07beff8cfe
commit db15297090
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 3 deletions

View file

@ -0,0 +1,12 @@
# frozen_string_literal: true
class AssetChangeEstimatedSizeToBigint < ActiveRecord::Migration[6.1]
def up
change_column :assets, :estimated_size, :bigint
change_column :tiny_mce_assets, :estimated_size, :bigint
end
def down
raise ActiveRecord::IrreversibleMigration
end
end

View file

@ -279,7 +279,7 @@ CREATE TABLE public.assets (
updated_at timestamp without time zone NOT NULL,
created_by_id bigint,
last_modified_by_id bigint,
estimated_size integer DEFAULT 0 NOT NULL,
estimated_size bigint DEFAULT 0 NOT NULL,
lock character varying(1024),
lock_ttl integer,
version integer DEFAULT 1,
@ -2844,7 +2844,7 @@ ALTER SEQUENCE public.temp_files_id_seq OWNED BY public.temp_files.id;
CREATE TABLE public.tiny_mce_assets (
id bigint NOT NULL,
estimated_size integer DEFAULT 0 NOT NULL,
estimated_size bigint DEFAULT 0 NOT NULL,
team_id integer,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
@ -8686,6 +8686,7 @@ INSERT INTO "schema_migrations" (version) VALUES
('20230120141017'),
('20230206095817'),
('20230223142119'),
('20230227131215');
('20230227131215'),
('20230414091215');