Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
f1652713
Unverified
Commit
f1652713
authored
7 years ago
by
Cam Saul
Browse files
Options
Downloads
Patches
Plain Diff
Clear out FK target IDs so FKs can get reset
parent
df8d51e6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
frontend/test/__runner__/test_db_fixture.db.h2.db
+0
-0
0 additions, 0 deletions
frontend/test/__runner__/test_db_fixture.db.h2.db
src/metabase/cmd/refresh_integration_test_db_metadata.clj
+4
-1
4 additions, 1 deletion
src/metabase/cmd/refresh_integration_test_db_metadata.clj
with
4 additions
and
1 deletion
frontend/test/__runner__/test_db_fixture.db.h2.db
+
0
−
0
View file @
f1652713
No preview for this file type
This diff is collapsed.
Click to expand it.
src/metabase/cmd/refresh_integration_test_db_metadata.clj
+
4
−
1
View file @
f1652713
...
...
@@ -34,7 +34,10 @@
;; clear out all Fingerprints so we force analysis to run again. Clear out special type and has_field_values as
;; well so we can be sure those will be set to the correct values
(
db/debug-print-queries
(
db/update!
Field
{
:set
{
:fingerprint_version
0
,
:special_type
nil,
:has_field_values
nil
}}))
(
db/update!
Field
{
:set
{
:fingerprint_version
0
:special_type
nil
:has_field_values
nil
:fk_target_field_id
nil
}}))
;; now re-run sync
(
sync/sync-database!
(
Database
:is_sample
true
))
;; done!
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment