| @@ 240-248 (lines=9) @@ | ||
| 237 | * |
|
| 238 | * @return void |
|
| 239 | */ |
|
| 240 | private function saveMigration(Connection $connection, string $class): void |
|
| 241 | { |
|
| 242 | $format = $connection->getSchemaManager()->getDatabasePlatform()->getDateTimeFormatString(); |
|
| 243 | $now = (new DateTimeImmutable())->format($format); |
|
| 244 | $connection->insert(static::MIGRATIONS_TABLE, [ |
|
| 245 | static::MIGRATIONS_COLUMN_CLASS => $class, |
|
| 246 | static::MIGRATIONS_COLUMN_MIGRATED_AT => $now, |
|
| 247 | ]); |
|
| 248 | } |
|
| 249 | ||
| 250 | /** |
|
| 251 | * @param Connection $connection |
|
| @@ 226-234 (lines=9) @@ | ||
| 223 | * |
|
| 224 | * @return void |
|
| 225 | */ |
|
| 226 | private function saveSeed(Connection $connection, string $class): void |
|
| 227 | { |
|
| 228 | $format = $connection->getSchemaManager()->getDatabasePlatform()->getDateTimeFormatString(); |
|
| 229 | $now = (new DateTimeImmutable())->format($format); |
|
| 230 | $connection->insert($this->getSeedsTable(), [ |
|
| 231 | static::SEEDS_COLUMN_CLASS => $class, |
|
| 232 | static::SEEDS_COLUMN_SEEDED_AT => $now, |
|
| 233 | ]); |
|
| 234 | } |
|
| 235 | ||
| 236 | /** |
|
| 237 | * @return string |
|