Convert id column for oauth_nonces to bigint

This commit is contained in:
Tom Hughes 2020-12-14 14:48:59 +00:00
parent 2168ad2108
commit 384ac46102
3 changed files with 10 additions and 2 deletions

View file

@ -2,7 +2,7 @@
# #
# Table name: oauth_nonces # Table name: oauth_nonces
# #
# id :integer not null, primary key # id :bigint not null, primary key
# nonce :string # nonce :string
# timestamp :integer # timestamp :integer
# created_at :datetime # created_at :datetime

View file

@ -0,0 +1,7 @@
class ExpandNonceId < ActiveRecord::Migration[6.0]
def change
safety_assured do
change_column :oauth_nonces, :id, :bigint
end
end
end

View file

@ -1075,7 +1075,7 @@ ALTER SEQUENCE public.notes_id_seq OWNED BY public.notes.id;
-- --
CREATE TABLE public.oauth_nonces ( CREATE TABLE public.oauth_nonces (
id integer NOT NULL, id bigint NOT NULL,
nonce character varying, nonce character varying,
"timestamp" integer, "timestamp" integer,
created_at timestamp without time zone, created_at timestamp without time zone,
@ -3147,6 +3147,7 @@ INSERT INTO "schema_migrations" (version) VALUES
('20191120140058'), ('20191120140058'),
('20201006213836'), ('20201006213836'),
('20201006220807'), ('20201006220807'),
('20201214144017'),
('21'), ('21'),
('22'), ('22'),
('23'), ('23'),