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

Only copy AccessToken data, if it exists #1697

Merged
merged 2 commits into from
Feb 13, 2023
Merged

Conversation

Pezmc
Copy link
Contributor

@Pezmc Pezmc commented Feb 13, 2023

Description

Fixes an exception raised during migrations.

If the AccessTokens table was empty, this would throw as you cannot bulk insert an empty array into a table.

Related Issue(s)

#1659
#1212

Checklist

  • I have read the contribution guidelines
  • [-] Suitable unit/system level tests have been added and they pass
  • [-] Documentation has been updated
    • Upgrade instructions
    • Configuration details
    • Concepts
  • [-] Changes flowforge.yml?
    • Issue/PR raised on flowforge/helm to update ConfigMap Template
    • Issue/PR raised on flowforge/CloudProject to update values for Staging/Production

Labels

  • [-] Backport needed? -> add the backport label
  • [-] Includes a DB migration? -> add the area:migration label

Previously this would throw as you cannot bulk insert an empty array into a table.
@Pezmc Pezmc requested a review from Steve-Mcl February 13, 2023 13:23
Co-authored-by: Stephen McLaughlin <44235289+Steve-Mcl@users.noreply.github.com>
@Pezmc Pezmc merged commit a8f14bc into main Feb 13, 2023
@Pezmc Pezmc deleted the fix-access-token-migration branch February 13, 2023 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: Automatic device join to project or easy setup scritpt for mass deploys
2 participants