OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Add migration to add webauthn columns
Klaus Zandersd09ba928bef8
diff --git a/modules/two_factor_authentication/db/migrate/20230627133534_add_webauthn_fields_to_two_factor_table.rb b/modules/two_factor_authentication/db/migrate/20230627133534_add_webauthn_fields_to_two_factor_table.rbnew file mode 100644index 00000000000..219b266ed19--- /dev/null+++ b/modules/two_factor_authentication/db/migrate/20230627133534_add_webauthn_fields_to_two_factor_table.rb@@ -0,0 +1,11 @@+class AddWebauthnFieldsToTwoFactorTable < ActiveRecord::Migration[7.0]+ def change+ add_column :two_factor_authentication_devices, :webauthn_external_id, :string, null: true+ add_index :two_factor_authentication_devices, :webauthn_external_id, unique: true++ add_column :two_factor_authentication_devices, :webauthn_public_key, :string, null: true+ add_column :two_factor_authentication_devices, :webauthn_sign_count, :bigint, null: false, default: 0++ add_column :users, :webauthn_id, :string, null: true+ end+end