--- /dev/null
+class AlterSequencesBigint < ActiveRecord::Migration[7.1]
+ def up
+ safety_assured do
+ execute "ALTER SEQUENCE oauth_nonces_id_seq AS bigint"
+ execute "ALTER SEQUENCE notes_id_seq AS bigint"
+ execute "ALTER SEQUENCE note_comments_id_seq AS bigint"
+ end
+ end
+
+ def down
+ safety_assured do
+ execute "ALTER SEQUENCE oauth_nonces_id_seq AS integer"
+ execute "ALTER SEQUENCE notes_id_seq AS integer"
+ execute "ALTER SEQUENCE note_comments_id_seq AS integer"
+ end
+ end
+end
--
CREATE SEQUENCE public.note_comments_id_seq
- AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
--
CREATE SEQUENCE public.notes_id_seq
- AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
--
CREATE SEQUENCE public.oauth_nonces_id_seq
- AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
('23'),
('22'),
('21'),
+('20231206141457'),
('20231117170422'),
('20231101222146'),
('20231029151516'),