Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
UserAdminV2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
庄欣
UserAdminV2
Commits
765dcc8b
Commit
765dcc8b
authored
Jan 22, 2012
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tweaking the migrator.
parent
3569edbb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
laravel/cli/tasks/migrate/migrator.php
+3
-3
No files found.
laravel/cli/tasks/migrate/migrator.php
View file @
765dcc8b
...
...
@@ -78,7 +78,7 @@ class Migrator extends Task {
// We need to grab the latest batch ID and increment it
// by one. This allows us to group the migrations such
// that we can easily determine which migrations need
// to
be rolled back for a given
command.
// to
roll back for the
command.
$batch
=
$this
->
database
->
batch
()
+
1
;
foreach
(
$migrations
as
$migration
)
...
...
@@ -89,7 +89,7 @@ class Migrator extends Task {
// After running a migration, we log its execution in the
// migration table so that we can easily determine which
// migrations we
will need to
reverse on a rollback.
// migrations we
'll
reverse on a rollback.
$this
->
database
->
log
(
$migration
[
'bundle'
],
$migration
[
'name'
],
$batch
);
}
}
...
...
@@ -124,7 +124,7 @@ class Migrator extends Task {
// By only removing the migration after it has successfully rolled back,
// we can re-run the rollback command in the event of any errors with
// the migration. When we re-run, only the migrations that have not
// been rolled
-
back for the batch will still be in the database.
// been rolled
back for the batch will still be in the database.
$this
->
database
->
delete
(
$migration
[
'bundle'
],
$migration
[
'name'
]);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment