Answers.Body: <p>Adding <code>getSchemaVersion()</code> to my main plugin file and returning a schema version did the trick.</p>
  
  <pre><code>public function getSchemaVersion()
  {
      return '0.0.4';
  }
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-03T17:54:25.393Z
Answers.LastActivityDate: 2017-07-03T17:54:25.393Z
Answers.UserDisplayName: Jameal G
Body: <p>I'm making some modifications to a custom plugin. I added a new attribute to one of the models and created a migration to add a new database column to hold that attribute. I updated the version number in my main plugin file and everything ran smoothly in my local environment. However in production I get "an unknown error occured" with no actual PHP errors or Craft errors being logged. This is after Craft tries to perform it's database updates (and tells me it went successfully).</p>
  
  <p>Running Craft 2.6.2982</p>
  
Tags: <plugin-development>
Title: Site is inaccessible after updating plugin with new attribute/db column
ThreadText: # Site is inaccessible after updating plugin with new attribute/db column
  
  (Asked by: username_0 on 2017-07-03)
  
  I'm making some modifications to a custom plugin. I added a new attribute to one of the models and created a migration to add a new database column to hold that attribute. I updated the version number in my main plugin file and everything ran smoothly in my local environment. However in production I get "an unknown error occured" with no actual PHP errors or Craft errors being logged. This is after Craft tries to perform it's database updates (and tells me it went successfully).
  
  Running Craft 2.6.2982
  
  **Tags:** plugin-development
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2017-07-03. Score: 1 | Accepted answer
  
  Adding `getSchemaVersion()` to my main plugin file and returning a schema version did the trick.
  
  ```
  public function getSchemaVersion()
  {
      return '0.0.4';
  }
  
  ```
  
  
  ---
  
  