getTable('cms_user'); $users->addColumn('created_at', 'datetime_immutable', ['notnull' => false]); // Not a security control, just the answer to "is this account still in use?". $users->addColumn('last_login_at', 'datetime_immutable', ['notnull' => false]); // Shown in the list so an old password is visible as such. $users->addColumn('password_changed_at', 'datetime_immutable', ['notnull' => false]); } public function down(Schema $schema): void { $this->throwIrreversibleMigrationException('Contains account data. Restore the verified database backup with matching code.'); } }