Added additional columns to user table

This commit is contained in:
Alex Tavarez
2025-09-02 18:11:13 -04:00
parent 63158c1406
commit 0b8cfa1385
6 changed files with 77 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
defmodule Sukaato.Repo.Migrations.UserReplaceOtpfidoStatusColumns do
use Ecto.Migration
def change do
alter table("users") do
remove :fido_active
add :fido_active, :boolean, default: false
remove :totp_active
add :totp_active, :boolean, default: true
remove :fido_enabled
add :fido_enabled, :boolean, default: false
remove :totp_enabled
add :totp_enabled, :boolean, default: false
end
end
end