[*] исправлены миграции под автообновление даты

This commit is contained in:
rsgrinko committed 2023-07-07 14:36:54 +03:00
1 parent a422976535
commit 657bc5ef77
6 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -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'])