Skip to content

Instantly share code, notes, and snippets.

@cole007
Created November 2, 2017 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cole007/4bfff23c693ca496ca4929f464df2a05 to your computer and use it in GitHub Desktop.
Save cole007/4bfff23c693ca496ca4929f464df2a05 to your computer and use it in GitHub Desktop.
<?php
namespace Craft;
class m171102_131500_mudKinetix_addCity extends BaseMigration
{
public function safeUp()
{
$this->addColumnAfter('mudkinetix_Availability', 'cityId', 'INT', 'propertyName');
$this->addColumnAfter('mudkinetix_Availability', 'cityName', 'VARCHAR(255)', 'cityId');
return true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment