Now armed with the information from the Datical reports, let’s fix this issue in our code and push our updates.

YOUR STEPS FOR THIS SCENE

  1. Launch VS Code, bring it to the foreground, and click on the Explorer Button (in yellow square, below)
  2. Expand the folders sql_code->ddl and double-click on add_notes.sql (designated by a red arrow)
  3. Examine the script


  4. We have found the problem, there was an @ character in the column name. Replace the @ symbol (highlighted in a blue rectangle above) with the letter captial O. Save the file.


  5. Click on the Source Control Button, click on add_notes.sql under changes, and then click on the plus directly to the right (yellow box) to add the file to git.


  6. Enter a commit message, anything will do (i.e. “fixed column name”)
  7. Click the checkmark icon to commit the changes (in orange circle, below).


  8. Now push the changes. You can do that by either clicking sync icon across the bottom (in yellow square, below) OR by using the more actions menu and selecting push (highlighted in blue, below)


  9. Click ‘OK’ if you are prompted to confirm.

Git

  1. Go back to our ssh terminal
  2. Open up the sql file in a text editor, ex. sql_code/ddl/add_notes.sql


  3. We have found the problem, there was an @ character in the column name.


  4. Replace the @ with an O and save the file.


  5. Enter git add . to add our changes
  6. Enter git commit -m "fixed column name" to add a commit message


  7. Enter git push to push our changes to the feature branch