multitenant: hook MigrationRecorder::has_table for a speedup (#81814) #78

Open
pducroquet wants to merge 2 commits from wip/81814-speedup-migrations into main
Owner
No description provided.
pducroquet added 1 commit 2023-09-29 16:30:03 +02:00
gitea/hobo/pipeline/head There was a failure building this commit Details
529d24232d
multitenant: hook MigrationRecorder::has_table for a speedup (#81814)
pducroquet force-pushed wip/81814-speedup-migrations from 529d24232d to 2fbdd2015e 2023-09-29 16:46:45 +02:00 Compare
pducroquet changed title from WIP: multitenant: hook MigrationRecorder::has_table for a speedup (#81814) to multitenant: hook MigrationRecorder::has_table for a speedup (#81814) 2023-09-29 17:00:56 +02:00
pducroquet added 1 commit 2023-09-29 17:50:22 +02:00
bdauvergne requested changes 2024-01-24 22:45:09 +01:00
@ -94,0 +95,4 @@
# Hook recorder has_table function for a nice speedup
original_has_table = MigrationRecorder.has_table
MigrationRecorder.has_table = lambda x: True
Owner

Cette modification doit être conditionnée pour ne pas être faite si on est lancé depuis Tenant.create_schema, je dirai de simplement ne pas le faire si la commande reçoit l'argument schema_name.

Cette modification doit être conditionnée pour ne pas être faite si on est lancé depuis Tenant.create_schema, je dirai de simplement ne pas le faire si la commande reçoit l'argument schema_name.
All checks were successful
gitea/hobo/pipeline/head This commit looks good
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
You can also view command line instructions.

Step 1:

From your project repository, check out a new branch and test the changes.
git checkout -b wip/81814-speedup-migrations main
git pull origin wip/81814-speedup-migrations

Step 2:

Merge the changes and update on Gitea.
git checkout main
git merge --no-ff wip/81814-speedup-migrations
git push origin main
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: entrouvert/hobo#78
No description provided.