mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 09:26:54 -06:00
Update UserEmail primary key sequence when performing bulk import.
This commit is contained in:
parent
5166b5460a
commit
d89d279416
@ -120,6 +120,7 @@ class BulkImport::Base
|
||||
puts "Updating primary key sequences..."
|
||||
@raw_connection.exec("SELECT setval('#{Group.sequence_name}', #{@last_group_id})")
|
||||
@raw_connection.exec("SELECT setval('#{User.sequence_name}', #{@last_user_id})")
|
||||
@raw_connection.exec("SELECT setval('#{UserEmail.sequence_name}', #{@last_user_email_id})")
|
||||
@raw_connection.exec("SELECT setval('#{Category.sequence_name}', #{@last_category_id})")
|
||||
@raw_connection.exec("SELECT setval('#{Topic.sequence_name}', #{@last_topic_id})")
|
||||
@raw_connection.exec("SELECT setval('#{Post.sequence_name}', #{@last_post_id})")
|
||||
|
Loading…
Reference in New Issue
Block a user