delete_sql="DELETE FROM gitlab_subscription_histories WHERE change_type=#{GITLAB_SUBSCRIPTION_CREATED} RETURNING *"
records=execute(delete_sql)
logger=Gitlab::BackgroundMigration::Logger.build
records.to_a.eachdo|record|
logger.inforecord.as_json.merge(message: "gitlab_subscription_histories with change_type=0 was deleted")
end
end
defdown
# There's no way to restore, and the data is useless
# all the data to be deleted in case needed https://gitlab.com/gitlab-org/gitlab/uploads/7409379b0ed658624f5d33202b5668a1/gitlab_subscription_histories_change_type_0.sql.txt
@@ -65,6 +65,7 @@ The following languages and dependency managers are supported.
| Python ([poetry](https://poetry.eustace.io/)) | not currently ([issue](https://gitlab.com/gitlab-org/gitlab/issues/7006"Support Poetry in Dependency Scanning")) | not available |