[*] исправлены миграции под автообновление даты
This commit is contained in:
1 parent
a422976535
commit
657bc5ef77
6 files changed
+6
-6
No files matched your search
@@ -42,7 +42,7 @@ final class Users extends AbstractMigration
|
||||
->addColumn('token', 'string', ['limit' => 255, 'default' => null])
|
||||
->addColumn('last_active', 'string', ['limit' => 100, 'default' => null])
|
||||
->addColumn('date_created', 'datetime', ['default' => 'CURRENT_TIMESTAMP'])
|
||||
->addColumn('date_updated', 'datetime', ['null' => true, 'default' => null])
|
||||
->addColumn('date_updated', 'datetime', ['null' => true, 'default' => null, 'update' => 'CURRENT_TIMESTAMP'])
|
||||
->addIndex(['login'])
|
||||
->addIndex(['token'])
|
||||
->addIndex(['email'])
|
||||
|
||||
Reference in new issue
Block a user