Skip to content

Commit

Permalink
fix: [torrust#56] db migration for imported users
Browse files Browse the repository at this point in the history
Imported users from DB version v1.0.0 (only SQLite) do not have a
"date_registered" field. WE have to copy that behavior in MySQL even if
we do not have users imported from from previous versions in MySQL.

Support for MySQL was added after the version v1.0.0.
  • Loading branch information
josecelano committed Nov 30, 2022
1 parent 38fee53 commit b29d4d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ALTER TABLE torrust_users CHANGE date_registered date_registered DATETIME NOT NULL
ALTER TABLE torrust_users CHANGE date_registered date_registered DATETIME DEFAULT NULL

0 comments on commit b29d4d7

Please sign in to comment.