mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-02 09:54:37 +08:00
Change asset estimated_size to bigint [SCI-8229] (#5304)
This commit is contained in:
parent
07beff8cfe
commit
db15297090
2 changed files with 16 additions and 3 deletions
|
@ -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
|
|
@ -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');
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue