Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#4338 pg schema upgrade #4375

Merged
merged 11 commits into from
Jan 3, 2018
Merged

#4338 pg schema upgrade #4375

merged 11 commits into from
Jan 3, 2018

Commits on Dec 30, 2017

  1. Method to upgrade schemas in Postgres;

    Adds:
      - schemaUpgrade method which check the fields to add and delete from old schema;
    paulovitin committed Dec 30, 2017
    Configuration menu
    Copy the full SHA
    ce984b8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c87d4d5 View commit details
    Browse the repository at this point in the history
  3. ESLint fix and PostgresStorageAdapter.schemaUpgrade spec test

    Adds:
      - Add PostgresStorageAdapter.schemaUpgrade spec tests: creates a table,
        simulates the addition of a new field and checks if its present in the database
    Chores:
      - ESLint eol-last fix;
    paulovitin committed Dec 30, 2017
    Configuration menu
    Copy the full SHA
    9ed3536 View commit details
    Browse the repository at this point in the history
  4. Add check columns before and after schema upgrade, and remove the unn…

    …ecessary piece of code
    
    Add:
      - Check the right columns is present before schema upgrade and the new field is not,
        then check if the right columns is present and the new field;
    Remove:
      - Piece of code unnecessary because it not need to remove diff columns;
    paulovitin committed Dec 30, 2017
    Configuration menu
    Copy the full SHA
    248d7c0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3b9acb4 View commit details
    Browse the repository at this point in the history
  6. If the class does not have any columns and needs an upgrade the code …

    …would
    
    return without doing so. Fixed this.
    
    Chore:
      - Allows class with no column to be upgraded;
      - Test for class with no columns being upgraded;
    paulovitin committed Dec 30, 2017
    Configuration menu
    Copy the full SHA
    59dacea View commit details
    Browse the repository at this point in the history
  7. Update PostgresStorageAdapter.js

    rewriting method schemaUpgrade
    vitaly-t committed Dec 30, 2017
    Configuration menu
    Copy the full SHA
    6f5db46 View commit details
    Browse the repository at this point in the history

Commits on Dec 31, 2017

  1. Configuration menu
    Copy the full SHA
    fe54648 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6ceee07 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d80eb2f View commit details
    Browse the repository at this point in the history

Commits on Jan 2, 2018

  1. Configuration menu
    Copy the full SHA
    4b348ad View commit details
    Browse the repository at this point in the history