summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2021-12-14 00:09:53 +0000
committerGo MAEDA <maeda@farend.jp>2021-12-14 00:09:53 +0000
commit9955844da1d209778f06ad9a3583949048b8ee88 (patch)
tree66ab53cdc74fd2dde980fd9dd6bd7a996fd1920b /db
parent390841721e61e0037db9f6227c72ee12f4d76180 (diff)
downloadredmine-9955844da1d209778f06ad9a3583949048b8ee88.tar.gz
redmine-9955844da1d209778f06ad9a3583949048b8ee88.zip
Drop OpenID support (#35755).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@21312 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20211213122100_remove_identity_url_from_users.rb5
-rw-r--r--db/migrate/20211213122101_drop_open_id_authentication_tables.rb18
-rw-r--r--db/migrate/20211213122102_remove_open_id_setting.rb5
3 files changed, 28 insertions, 0 deletions
diff --git a/db/migrate/20211213122100_remove_identity_url_from_users.rb b/db/migrate/20211213122100_remove_identity_url_from_users.rb
new file mode 100644
index 000000000..5279dafad
--- /dev/null
+++ b/db/migrate/20211213122100_remove_identity_url_from_users.rb
@@ -0,0 +1,5 @@
+class RemoveIdentityUrlFromUsers < ActiveRecord::Migration[6.1]
+ def change
+ remove_column :users, :identity_url, :string
+ end
+end
diff --git a/db/migrate/20211213122101_drop_open_id_authentication_tables.rb b/db/migrate/20211213122101_drop_open_id_authentication_tables.rb
new file mode 100644
index 000000000..befa0d82c
--- /dev/null
+++ b/db/migrate/20211213122101_drop_open_id_authentication_tables.rb
@@ -0,0 +1,18 @@
+class DropOpenIdAuthenticationTables < ActiveRecord::Migration[6.1]
+ def change
+ drop_table :open_id_authentication_associations do |t|
+ t.integer "issued"
+ t.integer "lifetime"
+ t.string "handle"
+ t.string "assoc_type"
+ t.binary "server_url"
+ t.binary "secret"
+ end
+
+ drop_table :open_id_authentication_nonces do |t|
+ t.integer "timestamp", null: false
+ t.string "server_url"
+ t.string "salt", null: false
+ end
+ end
+end
diff --git a/db/migrate/20211213122102_remove_open_id_setting.rb b/db/migrate/20211213122102_remove_open_id_setting.rb
new file mode 100644
index 000000000..98c11f8aa
--- /dev/null
+++ b/db/migrate/20211213122102_remove_open_id_setting.rb
@@ -0,0 +1,5 @@
+class RemoveOpenIdSetting < ActiveRecord::Migration[6.1]
+ def change
+ Setting.where(:name => 'openid').delete_all
+ end
+end