reverted: --- b/core/modules/user/user.install +++ a/core/modules/user/user.install @@ -46,12 +46,6 @@ 'unsigned' => TRUE, 'default' => 0, ), - 'changed' => array( - 'description' => 'The Unix timestamp when the user was most recently saved.', - 'type' => 'int', - 'not null' => TRUE, - 'default' => 0, - ), ), 'primary key' => array('uid', 'module', 'name'), 'indexes' => array( only in patch2: unchanged: --- a/core/modules/user/src/Tests/UserCreateTest.php +++ b/core/modules/user/src/Tests/UserCreateTest.php @@ -31,6 +31,9 @@ protected function testUserAdd() { $user = $this->drupalCreateUser(array('administer users')); $this->drupalLogin($user); + $this->assertEqual($user->getCreatedTime(), REQUEST_TIME, 'Creating a user sets default "created" timestamp.'); + $this->assertEqual($user->getChangedTime(), REQUEST_TIME, 'Creating a user sets default "changed" timestamp.'); + // Create a field and an instance. $field_name = 'test_field'; $field = array( only in patch2: unchanged: --- a/core/modules/user/src/Tests/UserEditTest.php +++ b/core/modules/user/src/Tests/UserEditTest.php @@ -65,6 +65,9 @@ function testUserEdit() { $this->drupalPostForm("user/" . $user1->id() . "/edit", $edit, t('Save')); $this->assertRaw(t("The changes have been saved.")); + // Make sure the changed timestamp is updated. + $this->assertEqual($user1->getChangedTime(), REQUEST_TIME, 'Changing a user sets "changed" timestamp.'); + // Make sure the user can log in with their new password. $this->drupalLogout(); $user1->pass_raw = $new_pass;