Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Key Value Table requires workspace ID #240

Merged
merged 8 commits into from
Apr 12, 2020

Conversation

alysivji
Copy link
Member

What does this do

Key-Value pairs stored in the database require a related workspace ID.

Why are we doing this

Continuing the Kubernetes migration. Setting up a staging environment requires us to make things "multitenant".

Adding a workspace_id tag to the KeyValueStore is not the best way to handle the Retweeter feature, but it's a good enough workaround for now.

How should this be tested

Modified tests; do they pass?

Migrations

Adding a required foreign_key to the KeyValueStore. Doing it in 3 stages as this table already has records:

  1. Create a nullable column
  2. Data migration
  3. Make column required

Dependencies

n/a

@alysivji alysivji merged commit 6e07166 into busy-beaver-dev:master Apr 12, 2020
@alysivji alysivji deleted the kvstore-adds-workspace branch April 12, 2020 19:06
@alysivji alysivji mentioned this pull request Apr 15, 2020
12 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant