aboutsummaryrefslogtreecommitdiff
path: root/migrations/mysql
diff options
context:
space:
mode:
authorDaniel <[email protected]>2024-09-18 20:03:15 +0300
committerGitHub <[email protected]>2024-09-18 19:03:15 +0200
commit21efc0800ddfc4378a541c6d507a1cd481496575 (patch)
treea46767b5630f6ec794d864f0717789b64de7db16 /migrations/mysql
parent1031c2e2863414ff7a1bedb33f458ebed19859bf (diff)
downloadvaultwarden-21efc0800ddfc4378a541c6d507a1cd481496575.tar.gz
vaultwarden-21efc0800ddfc4378a541c6d507a1cd481496575.zip
Actually use Device Type for mails (#4916)
- match Bitwarden behaviour - add a different segment in mails for Device Name
Diffstat (limited to 'migrations/mysql')
-rw-r--r--migrations/mysql/2024-09-04-091351_use_device_type_for_mails/down.sql1
-rw-r--r--migrations/mysql/2024-09-04-091351_use_device_type_for_mails/up.sql1
2 files changed, 2 insertions, 0 deletions
diff --git a/migrations/mysql/2024-09-04-091351_use_device_type_for_mails/down.sql b/migrations/mysql/2024-09-04-091351_use_device_type_for_mails/down.sql
new file mode 100644
index 00000000..dd0394ee
--- /dev/null
+++ b/migrations/mysql/2024-09-04-091351_use_device_type_for_mails/down.sql
@@ -0,0 +1 @@
+ALTER TABLE `twofactor_incomplete` DROP COLUMN `device_type`;
diff --git a/migrations/mysql/2024-09-04-091351_use_device_type_for_mails/up.sql b/migrations/mysql/2024-09-04-091351_use_device_type_for_mails/up.sql
new file mode 100644
index 00000000..423e16c1
--- /dev/null
+++ b/migrations/mysql/2024-09-04-091351_use_device_type_for_mails/up.sql
@@ -0,0 +1 @@
+ALTER TABLE `twofactor_incomplete` ADD COLUMN `device_type` INTEGER NOT NULL;