Skip to content

0.6.0

Latest

Choose a tag to compare

@tbinna tbinna released this 12 Aug 09:12
· 9 commits to master since this release

This release implements the changes from atlassian-connect-play 0.9.0 by adding a ttl column to the Atlassian host table and implementing the new Atlassian host table APIs (delete and findUninstalled).

This update also requires the Atlassian host's installed column to be of boolean type instead of varchar. Please take a look at the evolution script below on how to perform these schema changes.

This update requires existing framework users to update their database with an evolution similar to the following:

# --- !Ups
ALTER TABLE atlassian_host ADD ttl TIMESTAMP;

ALTER TABLE atlassian_host
    RENAME COLUMN installed TO installed_string;

ALTER TABLE atlassian_host ADD installed BOOLEAN;

UPDATE atlassian_host SET installed = CASE
    WHEN installed_string = 'true' THEN TRUE
    WHEN installed_string = 'false' THEN FALSE
    ELSE FALSE
END;


# --- !Downs
ALTER TABLE atlassian_host DROP COLUMN ttl;
ALTER TABLE atlassian_host DROP COLUMN installed;
ALTER TABLE atlassian_host
    RENAME COLUMN installed_string TO installed;