1
0
Fork 0
mirror of https://github.com/Oreolek/kohana-migrations.git synced 2024-06-28 20:55:08 +03:00
kohana-migrations/views/minion/task/migrations/run.php
Evan Purkhiser bc28977d65 Cleanup coding style to conform to Kohana CS
- Added variable names to just about all @param tags
 - Ensured proper alignment in doc block comments
 - Ensured proper file spacing and trimmed all trailing whitespace
 - Corrected improper languge construct formats (eg if () not if())
 - Corrected some assignment operator alignment
 - A few spelling corrections
 - All classes pass `phpcs --Standard=Kohana` (asside from tests)
2012-10-24 04:08:09 -04:00

34 lines
987 B
PHP

<?php if ( ! $quiet): ?>
Executed <?php echo count($executed_migrations); ?> migrations
Current versions of groups:
<?php echo new View('minion/task/migrations/status', array('groups' => $group_versions)) ?>
<?php if ($dry_run): ?>
This was a dry run, if it was a real run the following SQL would've been executed:
<?php endif; ?>
<?php endif; ?>
<?php foreach ($dry_run_sql as $group => $migrations): ?>
<?php $group_padding = str_repeat('#', strlen($group)); ?>
##################<?php echo $group_padding ?>##
# Begin Location: <?php echo $group; ?> #
##################<?php echo $group_padding ?>##
<?php foreach ($migrations as $timestamp => $sql): ?>
# Begin <?php echo $timestamp; ?>
<?php foreach ($sql as $query): ?>
<?php echo $query;?>;
<?php endforeach; ?>
# End <?php echo $timestamp; ?>
<?php endforeach; ?>
################<?php echo $group_padding ?>##
# End Location: <?php echo $group; ?> #
################<?php echo $group_padding ?>##
<?php endforeach; ?>