Migration to make password_resets.ip_address_redemption nullable

This commit is contained in:
Brandon Thomas committed 2023-10-23 22:11:26 -04:00
1 parent e14440ba02
commit 4c8f14d4d5
3 files changed
+13 -1

No files matched your search

@@ -0,0 +1,6 @@
-- noinspection SqlDialectInspectionForFile
-- noinspection SqlNoDataSourceInspectionForFile
-- noinspection SqlResolveForFile
ALTER TABLE password_resets
MODIFY ip_address_redemption VARCHAR(40) NOT NULL;
@@ -0,0 +1,6 @@
-- noinspection SqlDialectInspectionForFile
-- noinspection SqlNoDataSourceInspectionForFile
-- noinspection SqlResolveForFile
ALTER TABLE password_resets
MODIFY ip_address_redemption VARCHAR(40) DEFAULT NULL;
@@ -42,7 +42,7 @@ CREATE TABLE password_resets (
-- For abuse tracking.
-- Wide enough for IPv4/6
ip_address_creation VARCHAR(40) NOT NULL,
ip_address_redemption VARCHAR(40) NOT NULL,
ip_address_redemption VARCHAR(40) DEFAULT NULL,
-- Incremented with every update.
version INT NOT NULL DEFAULT 0,