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/db/migrate.php
Matt Button e0fe87f443 Starting to refactor stuff.
Renaming locations -> groups
Cut down the size of fetch_required_migrations()
2011-02-17 20:43:04 +00:00

37 lines
1 KiB
PHP

<?php if( ! $quiet): ?>
Executed <?php echo count($executed_migrations); ?> migrations
Current versions of groups:
<?php foreach($group_versions as $group): ?>
* <?php echo $group['group'] ?> : <?php echo $group['timestamp'] ?> (<?php echo $group['description']; ?>)
<?php endforeach; ?>
<?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; ?>