initdb: skip data checks for beta classes & regen

This commit is contained in:
Jimmy Zelinskie 2017-03-16 16:37:16 -04:00
parent 2a117f2d24
commit f94d5c7684
2 changed files with 4 additions and 1 deletions

View file

@ -14,7 +14,7 @@ from uuid import UUID, uuid4
from threading import Event
from email.utils import formatdate
from data.database import (db, all_models, Role, TeamRole, Visibility, LoginService,
from data.database import (db, all_models, beta_classes, Role, TeamRole, Visibility, LoginService,
BuildTriggerService, AccessTokenKind, LogEntryKind, ImageStorageLocation,
ImageStorageTransformation, ImageStorageSignatureKind,
ExternalNotificationEvent, ExternalNotificationMethod, NotificationKind,
@ -824,6 +824,9 @@ def find_models_missing_data():
# As a sanity check we are going to make sure that all db tables have some data
models_missing_data = set()
for one_model in all_models:
if one_model in beta_classes:
continue
try:
one_model.select().get()
except one_model.DoesNotExist:

Binary file not shown.