Skip to content

Commit a2abeec

Browse files
committed
refactor(db): Change timestamp column types to datetime
- Change start_time column type to datetime - Change end_time column type to datetime
1 parent cea9c12 commit a2abeec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Phinx/Db/Adapter/AbstractAdapter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,8 @@ public function createSchemaTable(): void
310310
$table = new Table($this->getSchemaTableName(), $options, $this);
311311
$table->addColumn('version', 'biginteger', ['null' => false])
312312
->addColumn('migration_name', 'string', ['limit' => 100, 'default' => null, 'null' => true])
313-
->addColumn('start_time', 'timestamp', ['default' => null, 'null' => true])
314-
->addColumn('end_time', 'timestamp', ['default' => null, 'null' => true])
313+
->addColumn('start_time', 'datetime', ['default' => null, 'null' => true])
314+
->addColumn('end_time', 'datetime', ['default' => null, 'null' => true])
315315
->addColumn('breakpoint', 'boolean', ['default' => false, 'null' => false])
316316
->save();
317317
} catch (Exception $exception) {

0 commit comments

Comments
 (0)