Skip to content

Instantly share code, notes, and snippets.

@jwpage
Created April 17, 2014 22:43
Show Gist options
  • Save jwpage/11015647 to your computer and use it in GitHub Desktop.
Save jwpage/11015647 to your computer and use it in GitHub Desktop.
Move implied commands to the end
diff --git a/src/Illuminate/Database/Schema/Blueprint.php b/src/Illuminate/Database/Schema/Blueprint.php
index 836d013..888599b 100755
--- a/src/Illuminate/Database/Schema/Blueprint.php
+++ b/src/Illuminate/Database/Schema/Blueprint.php
@@ -105,7 +105,7 @@ class Blueprint {
{
if (count($this->columns) > 0 && ! $this->creating())
{
- array_unshift($this->commands, $this->createCommand('add'));
+ array_push($this->commands, $this->createCommand('add'));
}
$this->addFluentIndexes();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment