From: Tom Hughes Date: Mon, 14 Dec 2020 14:48:59 +0000 (+0000) Subject: Convert id column for oauth_nonces to bigint X-Git-Tag: live~1860 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/384ac4610262157e13f5a3d2656ac5023f35beea Convert id column for oauth_nonces to bigint --- diff --git a/app/models/oauth_nonce.rb b/app/models/oauth_nonce.rb index 5f0920a96..86463f297 100644 --- a/app/models/oauth_nonce.rb +++ b/app/models/oauth_nonce.rb @@ -2,7 +2,7 @@ # # Table name: oauth_nonces # -# id :integer not null, primary key +# id :bigint not null, primary key # nonce :string # timestamp :integer # created_at :datetime diff --git a/db/migrate/20201214144017_expand_nonce_id.rb b/db/migrate/20201214144017_expand_nonce_id.rb new file mode 100644 index 000000000..9416ffe6a --- /dev/null +++ b/db/migrate/20201214144017_expand_nonce_id.rb @@ -0,0 +1,7 @@ +class ExpandNonceId < ActiveRecord::Migration[6.0] + def change + safety_assured do + change_column :oauth_nonces, :id, :bigint + end + end +end diff --git a/db/structure.sql b/db/structure.sql index 5c33e4838..b5c4ec01d 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -1075,7 +1075,7 @@ ALTER SEQUENCE public.notes_id_seq OWNED BY public.notes.id; -- CREATE TABLE public.oauth_nonces ( - id integer NOT NULL, + id bigint NOT NULL, nonce character varying, "timestamp" integer, created_at timestamp without time zone, @@ -3147,6 +3147,7 @@ INSERT INTO "schema_migrations" (version) VALUES ('20191120140058'), ('20201006213836'), ('20201006220807'), +('20201214144017'), ('21'), ('22'), ('23'),