##// END OF EJS Templates
migration: removed deprecated mapper_args attributes that cause migration to break
super-admin -
r5160:d8fcae98 default
parent child Browse files
Show More
@@ -700,7 +700,7 b' class RepoGroup(Base, BaseModel):'
700 {'extend_existing': True, 'mysql_engine':'InnoDB',
700 {'extend_existing': True, 'mysql_engine':'InnoDB',
701 'mysql_charset': 'utf8'},
701 'mysql_charset': 'utf8'},
702 )
702 )
703 __mapper_args__ = {'order_by': 'group_name'}
703
704
704
705 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
705 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
706 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
706 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
@@ -339,7 +339,7 b' class UserEmailMap(Base, BaseModel):'
339 {'extend_existing': True, 'mysql_engine': 'InnoDB',
339 {'extend_existing': True, 'mysql_engine': 'InnoDB',
340 'mysql_charset': 'utf8'}
340 'mysql_charset': 'utf8'}
341 )
341 )
342 __mapper_args__ = {}
342
343
343
344 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
344 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
345 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
345 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -514,7 +514,7 b' class RepoGroup(Base, BaseModel):'
514 {'extend_existing': True, 'mysql_engine': 'InnoDB',
514 {'extend_existing': True, 'mysql_engine': 'InnoDB',
515 'mysql_charset': 'utf8'},
515 'mysql_charset': 'utf8'},
516 )
516 )
517 __mapper_args__ = {'order_by': 'group_name'}
517
518
518
519 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
519 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
520 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
520 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
@@ -351,7 +351,7 b' class UserEmailMap(Base, BaseModel):'
351 {'extend_existing': True, 'mysql_engine': 'InnoDB',
351 {'extend_existing': True, 'mysql_engine': 'InnoDB',
352 'mysql_charset': 'utf8'}
352 'mysql_charset': 'utf8'}
353 )
353 )
354 __mapper_args__ = {}
354
355
355
356 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
356 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
357 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
357 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -527,7 +527,7 b' class RepoGroup(Base, BaseModel):'
527 {'extend_existing': True, 'mysql_engine': 'InnoDB',
527 {'extend_existing': True, 'mysql_engine': 'InnoDB',
528 'mysql_charset': 'utf8'},
528 'mysql_charset': 'utf8'},
529 )
529 )
530 __mapper_args__ = {'order_by': 'group_name'}
530
531
531
532 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
532 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
533 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
533 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
@@ -351,7 +351,7 b' class UserEmailMap(Base, BaseModel):'
351 {'extend_existing': True, 'mysql_engine': 'InnoDB',
351 {'extend_existing': True, 'mysql_engine': 'InnoDB',
352 'mysql_charset': 'utf8'}
352 'mysql_charset': 'utf8'}
353 )
353 )
354 __mapper_args__ = {}
354
355
355
356 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
356 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
357 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
357 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -382,7 +382,7 b' class UserIpMap(Base, BaseModel):'
382 {'extend_existing': True, 'mysql_engine': 'InnoDB',
382 {'extend_existing': True, 'mysql_engine': 'InnoDB',
383 'mysql_charset': 'utf8'}
383 'mysql_charset': 'utf8'}
384 )
384 )
385 __mapper_args__ = {}
385
386
386
387 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
387 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
388 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
388 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -544,7 +544,7 b' class RepoGroup(Base, BaseModel):'
544 {'extend_existing': True, 'mysql_engine': 'InnoDB',
544 {'extend_existing': True, 'mysql_engine': 'InnoDB',
545 'mysql_charset': 'utf8'},
545 'mysql_charset': 'utf8'},
546 )
546 )
547 __mapper_args__ = {'order_by': 'group_name'}
547
548
548
549 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
549 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
550 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
550 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
@@ -352,7 +352,7 b' class UserEmailMap(Base, BaseModel):'
352 {'extend_existing': True, 'mysql_engine': 'InnoDB',
352 {'extend_existing': True, 'mysql_engine': 'InnoDB',
353 'mysql_charset': 'utf8'}
353 'mysql_charset': 'utf8'}
354 )
354 )
355 __mapper_args__ = {}
355
356
356
357 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
357 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
358 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
358 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -383,7 +383,7 b' class UserIpMap(Base, BaseModel):'
383 {'extend_existing': True, 'mysql_engine': 'InnoDB',
383 {'extend_existing': True, 'mysql_engine': 'InnoDB',
384 'mysql_charset': 'utf8'}
384 'mysql_charset': 'utf8'}
385 )
385 )
386 __mapper_args__ = {}
386
387
387
388 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
388 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
389 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
389 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -628,7 +628,7 b' class RepoGroup(Base, BaseModel):'
628 {'extend_existing': True, 'mysql_engine': 'InnoDB',
628 {'extend_existing': True, 'mysql_engine': 'InnoDB',
629 'mysql_charset': 'utf8'},
629 'mysql_charset': 'utf8'},
630 )
630 )
631 __mapper_args__ = {'order_by': 'group_name'}
631
632
632
633 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
633 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
634 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
634 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
@@ -365,7 +365,7 b' class UserEmailMap(Base, BaseModel):'
365 {'extend_existing': True, 'mysql_engine': 'InnoDB',
365 {'extend_existing': True, 'mysql_engine': 'InnoDB',
366 'mysql_charset': 'utf8'}
366 'mysql_charset': 'utf8'}
367 )
367 )
368 __mapper_args__ = {}
368
369
369
370 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
370 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
371 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
371 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -396,7 +396,7 b' class UserIpMap(Base, BaseModel):'
396 {'extend_existing': True, 'mysql_engine': 'InnoDB',
396 {'extend_existing': True, 'mysql_engine': 'InnoDB',
397 'mysql_charset': 'utf8'}
397 'mysql_charset': 'utf8'}
398 )
398 )
399 __mapper_args__ = {}
399
400
400
401 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
401 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
402 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
402 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -599,7 +599,7 b' class RepoGroup(Base, BaseModel):'
599 {'extend_existing': True, 'mysql_engine': 'InnoDB',
599 {'extend_existing': True, 'mysql_engine': 'InnoDB',
600 'mysql_charset': 'utf8'},
600 'mysql_charset': 'utf8'},
601 )
601 )
602 __mapper_args__ = {'order_by': 'group_name'}
602
603
603
604 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
604 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
605 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
605 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
@@ -367,7 +367,7 b' class UserEmailMap(Base, BaseModel):'
367 {'extend_existing': True, 'mysql_engine': 'InnoDB',
367 {'extend_existing': True, 'mysql_engine': 'InnoDB',
368 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
368 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
369 )
369 )
370 __mapper_args__ = {}
370
371
371
372 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
372 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
373 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
373 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -398,7 +398,7 b' class UserIpMap(Base, BaseModel):'
398 {'extend_existing': True, 'mysql_engine': 'InnoDB',
398 {'extend_existing': True, 'mysql_engine': 'InnoDB',
399 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
399 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
400 )
400 )
401 __mapper_args__ = {}
401
402
402
403 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
403 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
404 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
404 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -601,7 +601,7 b' class RepoGroup(Base, BaseModel):'
601 {'extend_existing': True, 'mysql_engine': 'InnoDB',
601 {'extend_existing': True, 'mysql_engine': 'InnoDB',
602 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
602 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
603 )
603 )
604 __mapper_args__ = {'order_by': 'group_name'}
604
605
605
606 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
606 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
607 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
607 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
@@ -387,7 +387,7 b' class UserEmailMap(Base, BaseModel):'
387 {'extend_existing': True, 'mysql_engine': 'InnoDB',
387 {'extend_existing': True, 'mysql_engine': 'InnoDB',
388 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
388 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
389 )
389 )
390 __mapper_args__ = {}
390
391
391
392 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
392 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
393 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
393 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -418,7 +418,7 b' class UserIpMap(Base, BaseModel):'
418 {'extend_existing': True, 'mysql_engine': 'InnoDB',
418 {'extend_existing': True, 'mysql_engine': 'InnoDB',
419 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
419 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
420 )
420 )
421 __mapper_args__ = {}
421
422
422
423 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
423 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
424 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
424 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -624,7 +624,7 b' class RepoGroup(Base, BaseModel):'
624 {'extend_existing': True, 'mysql_engine': 'InnoDB',
624 {'extend_existing': True, 'mysql_engine': 'InnoDB',
625 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
625 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
626 )
626 )
627 __mapper_args__ = {'order_by': 'group_name'}
627
628
628
629 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
629 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
630 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
630 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
@@ -387,7 +387,7 b' class UserEmailMap(Base, BaseModel):'
387 {'extend_existing': True, 'mysql_engine': 'InnoDB',
387 {'extend_existing': True, 'mysql_engine': 'InnoDB',
388 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
388 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
389 )
389 )
390 __mapper_args__ = {}
390
391
391
392 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
392 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
393 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
393 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -418,7 +418,7 b' class UserIpMap(Base, BaseModel):'
418 {'extend_existing': True, 'mysql_engine': 'InnoDB',
418 {'extend_existing': True, 'mysql_engine': 'InnoDB',
419 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
419 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
420 )
420 )
421 __mapper_args__ = {}
421
422
422
423 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
423 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
424 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
424 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -623,7 +623,7 b' class RepoGroup(Base, BaseModel):'
623 {'extend_existing': True, 'mysql_engine': 'InnoDB',
623 {'extend_existing': True, 'mysql_engine': 'InnoDB',
624 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
624 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
625 )
625 )
626 __mapper_args__ = {'order_by': 'group_name'}
626
627
627
628 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
628 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
629 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
629 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
@@ -387,7 +387,7 b' class UserEmailMap(Base, BaseModel):'
387 {'extend_existing': True, 'mysql_engine': 'InnoDB',
387 {'extend_existing': True, 'mysql_engine': 'InnoDB',
388 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
388 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
389 )
389 )
390 __mapper_args__ = {}
390
391
391
392 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
392 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
393 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
393 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -418,7 +418,7 b' class UserIpMap(Base, BaseModel):'
418 {'extend_existing': True, 'mysql_engine': 'InnoDB',
418 {'extend_existing': True, 'mysql_engine': 'InnoDB',
419 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
419 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
420 )
420 )
421 __mapper_args__ = {}
421
422
422
423 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
423 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
424 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
424 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -641,7 +641,7 b' class RepoGroup(Base, BaseModel):'
641 {'extend_existing': True, 'mysql_engine': 'InnoDB',
641 {'extend_existing': True, 'mysql_engine': 'InnoDB',
642 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
642 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
643 )
643 )
644 __mapper_args__ = {'order_by': 'group_name'}
644
645
645
646 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
646 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
647 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
647 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
@@ -401,7 +401,7 b' class UserApiKeys(Base, BaseModel):'
401 {'extend_existing': True, 'mysql_engine': 'InnoDB',
401 {'extend_existing': True, 'mysql_engine': 'InnoDB',
402 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
402 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
403 )
403 )
404 __mapper_args__ = {}
404
405
405
406 user_api_key_id = Column("user_api_key_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
406 user_api_key_id = Column("user_api_key_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
407 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
407 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -421,7 +421,7 b' class UserEmailMap(Base, BaseModel):'
421 {'extend_existing': True, 'mysql_engine': 'InnoDB',
421 {'extend_existing': True, 'mysql_engine': 'InnoDB',
422 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
422 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
423 )
423 )
424 __mapper_args__ = {}
424
425
425
426 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
426 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
427 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
427 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -452,7 +452,7 b' class UserIpMap(Base, BaseModel):'
452 {'extend_existing': True, 'mysql_engine': 'InnoDB',
452 {'extend_existing': True, 'mysql_engine': 'InnoDB',
453 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
453 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
454 )
454 )
455 __mapper_args__ = {}
455
456
456
457 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
457 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
458 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
458 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -658,7 +658,7 b' class RepoGroup(Base, BaseModel):'
658 {'extend_existing': True, 'mysql_engine': 'InnoDB',
658 {'extend_existing': True, 'mysql_engine': 'InnoDB',
659 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
659 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
660 )
660 )
661 __mapper_args__ = {'order_by': 'group_name'}
661
662
662
663 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
663 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
664 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
664 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
@@ -408,7 +408,7 b' class UserApiKeys(Base, BaseModel):'
408 {'extend_existing': True, 'mysql_engine': 'InnoDB',
408 {'extend_existing': True, 'mysql_engine': 'InnoDB',
409 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
409 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
410 )
410 )
411 __mapper_args__ = {}
411
412
412
413 user_api_key_id = Column("user_api_key_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
413 user_api_key_id = Column("user_api_key_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
414 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
414 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -428,7 +428,7 b' class UserEmailMap(Base, BaseModel):'
428 {'extend_existing': True, 'mysql_engine': 'InnoDB',
428 {'extend_existing': True, 'mysql_engine': 'InnoDB',
429 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
429 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
430 )
430 )
431 __mapper_args__ = {}
431
432
432
433 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
433 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
434 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
434 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -459,7 +459,7 b' class UserIpMap(Base, BaseModel):'
459 {'extend_existing': True, 'mysql_engine': 'InnoDB',
459 {'extend_existing': True, 'mysql_engine': 'InnoDB',
460 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
460 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
461 )
461 )
462 __mapper_args__ = {}
462
463
463
464 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
464 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
465 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
465 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -674,7 +674,7 b' class RepoGroup(Base, BaseModel):'
674 {'extend_existing': True, 'mysql_engine': 'InnoDB',
674 {'extend_existing': True, 'mysql_engine': 'InnoDB',
675 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
675 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
676 )
676 )
677 __mapper_args__ = {'order_by': 'group_name'}
677
678
678
679 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
679 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
680 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
680 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
@@ -408,7 +408,7 b' class UserApiKeys(Base, BaseModel):'
408 {'extend_existing': True, 'mysql_engine': 'InnoDB',
408 {'extend_existing': True, 'mysql_engine': 'InnoDB',
409 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
409 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
410 )
410 )
411 __mapper_args__ = {}
411
412
412
413 user_api_key_id = Column("user_api_key_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
413 user_api_key_id = Column("user_api_key_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
414 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
414 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -428,7 +428,7 b' class UserEmailMap(Base, BaseModel):'
428 {'extend_existing': True, 'mysql_engine': 'InnoDB',
428 {'extend_existing': True, 'mysql_engine': 'InnoDB',
429 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
429 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
430 )
430 )
431 __mapper_args__ = {}
431
432
432
433 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
433 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
434 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
434 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -459,7 +459,7 b' class UserIpMap(Base, BaseModel):'
459 {'extend_existing': True, 'mysql_engine': 'InnoDB',
459 {'extend_existing': True, 'mysql_engine': 'InnoDB',
460 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
460 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
461 )
461 )
462 __mapper_args__ = {}
462
463
463
464 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
464 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
465 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
465 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -677,7 +677,7 b' class RepoGroup(Base, BaseModel):'
677 {'extend_existing': True, 'mysql_engine': 'InnoDB',
677 {'extend_existing': True, 'mysql_engine': 'InnoDB',
678 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
678 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
679 )
679 )
680 __mapper_args__ = {'order_by': 'group_name'}
680
681
681
682 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
682 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
683 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
683 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
@@ -406,7 +406,7 b' class UserApiKeys(Base, BaseModel):'
406 {'extend_existing': True, 'mysql_engine': 'InnoDB',
406 {'extend_existing': True, 'mysql_engine': 'InnoDB',
407 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
407 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
408 )
408 )
409 __mapper_args__ = {}
409
410
410
411 # ApiKey role
411 # ApiKey role
412 ROLE_ALL = 'token_role_all'
412 ROLE_ALL = 'token_role_all'
@@ -434,7 +434,7 b' class UserEmailMap(Base, BaseModel):'
434 {'extend_existing': True, 'mysql_engine': 'InnoDB',
434 {'extend_existing': True, 'mysql_engine': 'InnoDB',
435 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
435 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
436 )
436 )
437 __mapper_args__ = {}
437
438
438
439 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
439 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
440 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
440 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -465,7 +465,7 b' class UserIpMap(Base, BaseModel):'
465 {'extend_existing': True, 'mysql_engine': 'InnoDB',
465 {'extend_existing': True, 'mysql_engine': 'InnoDB',
466 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
466 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
467 )
467 )
468 __mapper_args__ = {}
468
469
469
470 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
470 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
471 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
471 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -681,7 +681,7 b' class RepoGroup(Base, BaseModel):'
681 {'extend_existing': True, 'mysql_engine': 'InnoDB',
681 {'extend_existing': True, 'mysql_engine': 'InnoDB',
682 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
682 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
683 )
683 )
684 __mapper_args__ = {'order_by': 'group_name'}
684
685
685
686 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
686 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
687 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
687 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
@@ -406,7 +406,7 b' class UserApiKeys(Base, BaseModel):'
406 {'extend_existing': True, 'mysql_engine': 'InnoDB',
406 {'extend_existing': True, 'mysql_engine': 'InnoDB',
407 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
407 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
408 )
408 )
409 __mapper_args__ = {}
409
410
410
411 # ApiKey role
411 # ApiKey role
412 ROLE_ALL = 'token_role_all'
412 ROLE_ALL = 'token_role_all'
@@ -434,7 +434,7 b' class UserEmailMap(Base, BaseModel):'
434 {'extend_existing': True, 'mysql_engine': 'InnoDB',
434 {'extend_existing': True, 'mysql_engine': 'InnoDB',
435 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
435 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
436 )
436 )
437 __mapper_args__ = {}
437
438
438
439 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
439 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
440 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
440 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -465,7 +465,7 b' class UserIpMap(Base, BaseModel):'
465 {'extend_existing': True, 'mysql_engine': 'InnoDB',
465 {'extend_existing': True, 'mysql_engine': 'InnoDB',
466 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
466 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
467 )
467 )
468 __mapper_args__ = {}
468
469
469
470 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
470 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
471 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
471 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -681,7 +681,7 b' class RepoGroup(Base, BaseModel):'
681 {'extend_existing': True, 'mysql_engine': 'InnoDB',
681 {'extend_existing': True, 'mysql_engine': 'InnoDB',
682 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
682 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
683 )
683 )
684 __mapper_args__ = {'order_by': 'group_name'}
684
685
685
686 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
686 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
687 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
687 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
@@ -425,7 +425,7 b' class UserApiKeys(Base, BaseModel):'
425 {'extend_existing': True, 'mysql_engine': 'InnoDB',
425 {'extend_existing': True, 'mysql_engine': 'InnoDB',
426 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
426 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
427 )
427 )
428 __mapper_args__ = {}
428
429
429
430 # ApiKey role
430 # ApiKey role
431 ROLE_ALL = 'token_role_all'
431 ROLE_ALL = 'token_role_all'
@@ -454,7 +454,7 b' class UserEmailMap(Base, BaseModel):'
454 {'extend_existing': True, 'mysql_engine': 'InnoDB',
454 {'extend_existing': True, 'mysql_engine': 'InnoDB',
455 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
455 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
456 )
456 )
457 __mapper_args__ = {}
457
458
458
459 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
459 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
460 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
460 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -485,7 +485,7 b' class UserIpMap(Base, BaseModel):'
485 {'extend_existing': True, 'mysql_engine': 'InnoDB',
485 {'extend_existing': True, 'mysql_engine': 'InnoDB',
486 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
486 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
487 )
487 )
488 __mapper_args__ = {}
488
489
489
490 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
490 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
491 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
491 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -709,7 +709,7 b' class RepoGroup(Base, BaseModel):'
709 {'extend_existing': True, 'mysql_engine': 'InnoDB',
709 {'extend_existing': True, 'mysql_engine': 'InnoDB',
710 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
710 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
711 )
711 )
712 __mapper_args__ = {'order_by': 'group_name'}
712
713
713
714 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
714 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
715 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
715 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
@@ -435,7 +435,7 b' class UserApiKeys(Base, BaseModel):'
435 {'extend_existing': True, 'mysql_engine': 'InnoDB',
435 {'extend_existing': True, 'mysql_engine': 'InnoDB',
436 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
436 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
437 )
437 )
438 __mapper_args__ = {}
438
439
439
440 # ApiKey role
440 # ApiKey role
441 ROLE_ALL = 'token_role_all'
441 ROLE_ALL = 'token_role_all'
@@ -464,7 +464,7 b' class UserEmailMap(Base, BaseModel):'
464 {'extend_existing': True, 'mysql_engine': 'InnoDB',
464 {'extend_existing': True, 'mysql_engine': 'InnoDB',
465 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
465 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
466 )
466 )
467 __mapper_args__ = {}
467
468
468
469 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
469 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
470 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
470 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -495,7 +495,7 b' class UserIpMap(Base, BaseModel):'
495 {'extend_existing': True, 'mysql_engine': 'InnoDB',
495 {'extend_existing': True, 'mysql_engine': 'InnoDB',
496 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
496 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
497 )
497 )
498 __mapper_args__ = {}
498
499
499
500 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
500 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
501 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
501 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -719,7 +719,7 b' class RepoGroup(Base, BaseModel):'
719 {'extend_existing': True, 'mysql_engine': 'InnoDB',
719 {'extend_existing': True, 'mysql_engine': 'InnoDB',
720 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
720 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
721 )
721 )
722 __mapper_args__ = {'order_by': 'group_name'}
722
723
723
724 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
724 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
725 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
725 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
@@ -476,7 +476,7 b' class UserApiKeys(Base, BaseModel):'
476 {'extend_existing': True, 'mysql_engine': 'InnoDB',
476 {'extend_existing': True, 'mysql_engine': 'InnoDB',
477 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
477 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
478 )
478 )
479 __mapper_args__ = {}
479
480
480
481 # ApiKey role
481 # ApiKey role
482 ROLE_ALL = 'token_role_all'
482 ROLE_ALL = 'token_role_all'
@@ -505,7 +505,7 b' class UserEmailMap(Base, BaseModel):'
505 {'extend_existing': True, 'mysql_engine': 'InnoDB',
505 {'extend_existing': True, 'mysql_engine': 'InnoDB',
506 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
506 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
507 )
507 )
508 __mapper_args__ = {}
508
509
509
510 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
510 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
511 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
511 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -536,7 +536,7 b' class UserIpMap(Base, BaseModel):'
536 {'extend_existing': True, 'mysql_engine': 'InnoDB',
536 {'extend_existing': True, 'mysql_engine': 'InnoDB',
537 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
537 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
538 )
538 )
539 __mapper_args__ = {}
539
540
540
541 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
541 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
542 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
542 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -760,7 +760,7 b' class RepoGroup(Base, BaseModel):'
760 {'extend_existing': True, 'mysql_engine': 'InnoDB',
760 {'extend_existing': True, 'mysql_engine': 'InnoDB',
761 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
761 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
762 )
762 )
763 __mapper_args__ = {'order_by': 'group_name'}
763
764
764
765 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
765 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
766 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
766 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
@@ -476,7 +476,7 b' class UserApiKeys(Base, BaseModel):'
476 {'extend_existing': True, 'mysql_engine': 'InnoDB',
476 {'extend_existing': True, 'mysql_engine': 'InnoDB',
477 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
477 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
478 )
478 )
479 __mapper_args__ = {}
479
480
480
481 # ApiKey role
481 # ApiKey role
482 ROLE_ALL = 'token_role_all'
482 ROLE_ALL = 'token_role_all'
@@ -505,7 +505,7 b' class UserEmailMap(Base, BaseModel):'
505 {'extend_existing': True, 'mysql_engine': 'InnoDB',
505 {'extend_existing': True, 'mysql_engine': 'InnoDB',
506 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
506 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
507 )
507 )
508 __mapper_args__ = {}
508
509
509
510 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
510 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
511 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
511 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -536,7 +536,7 b' class UserIpMap(Base, BaseModel):'
536 {'extend_existing': True, 'mysql_engine': 'InnoDB',
536 {'extend_existing': True, 'mysql_engine': 'InnoDB',
537 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
537 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
538 )
538 )
539 __mapper_args__ = {}
539
540
540
541 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
541 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
542 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
542 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -760,7 +760,7 b' class RepoGroup(Base, BaseModel):'
760 {'extend_existing': True, 'mysql_engine': 'InnoDB',
760 {'extend_existing': True, 'mysql_engine': 'InnoDB',
761 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
761 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
762 )
762 )
763 __mapper_args__ = {'order_by': 'group_name'}
763
764
764
765 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
765 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
766 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
766 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
@@ -477,7 +477,7 b' class UserApiKeys(Base, BaseModel):'
477 {'extend_existing': True, 'mysql_engine': 'InnoDB',
477 {'extend_existing': True, 'mysql_engine': 'InnoDB',
478 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
478 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
479 )
479 )
480 __mapper_args__ = {}
480
481
481
482 # ApiKey role
482 # ApiKey role
483 ROLE_ALL = 'token_role_all'
483 ROLE_ALL = 'token_role_all'
@@ -506,7 +506,7 b' class UserEmailMap(Base, BaseModel):'
506 {'extend_existing': True, 'mysql_engine': 'InnoDB',
506 {'extend_existing': True, 'mysql_engine': 'InnoDB',
507 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
507 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
508 )
508 )
509 __mapper_args__ = {}
509
510
510
511 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
511 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
512 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
512 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -537,7 +537,7 b' class UserIpMap(Base, BaseModel):'
537 {'extend_existing': True, 'mysql_engine': 'InnoDB',
537 {'extend_existing': True, 'mysql_engine': 'InnoDB',
538 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
538 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
539 )
539 )
540 __mapper_args__ = {}
540
541
541
542 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
542 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
543 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
543 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -761,7 +761,7 b' class RepoGroup(Base, BaseModel):'
761 {'extend_existing': True, 'mysql_engine': 'InnoDB',
761 {'extend_existing': True, 'mysql_engine': 'InnoDB',
762 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
762 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
763 )
763 )
764 __mapper_args__ = {'order_by': 'group_name'}
764
765
765
766 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
766 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
767 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
767 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
@@ -477,7 +477,7 b' class UserApiKeys(Base, BaseModel):'
477 {'extend_existing': True, 'mysql_engine': 'InnoDB',
477 {'extend_existing': True, 'mysql_engine': 'InnoDB',
478 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
478 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
479 )
479 )
480 __mapper_args__ = {}
480
481
481
482 # ApiKey role
482 # ApiKey role
483 ROLE_ALL = 'token_role_all'
483 ROLE_ALL = 'token_role_all'
@@ -506,7 +506,7 b' class UserEmailMap(Base, BaseModel):'
506 {'extend_existing': True, 'mysql_engine': 'InnoDB',
506 {'extend_existing': True, 'mysql_engine': 'InnoDB',
507 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
507 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
508 )
508 )
509 __mapper_args__ = {}
509
510
510
511 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
511 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
512 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
512 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -537,7 +537,7 b' class UserIpMap(Base, BaseModel):'
537 {'extend_existing': True, 'mysql_engine': 'InnoDB',
537 {'extend_existing': True, 'mysql_engine': 'InnoDB',
538 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
538 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
539 )
539 )
540 __mapper_args__ = {}
540
541
541
542 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
542 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
543 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
543 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -761,7 +761,7 b' class RepoGroup(Base, BaseModel):'
761 {'extend_existing': True, 'mysql_engine': 'InnoDB',
761 {'extend_existing': True, 'mysql_engine': 'InnoDB',
762 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
762 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
763 )
763 )
764 __mapper_args__ = {'order_by': 'group_name'}
764
765
765
766 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
766 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
767 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
767 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
@@ -483,7 +483,7 b' class UserApiKeys(Base, BaseModel):'
483 {'extend_existing': True, 'mysql_engine': 'InnoDB',
483 {'extend_existing': True, 'mysql_engine': 'InnoDB',
484 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
484 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
485 )
485 )
486 __mapper_args__ = {}
486
487
487
488 # ApiKey role
488 # ApiKey role
489 ROLE_ALL = 'token_role_all'
489 ROLE_ALL = 'token_role_all'
@@ -512,7 +512,7 b' class UserEmailMap(Base, BaseModel):'
512 {'extend_existing': True, 'mysql_engine': 'InnoDB',
512 {'extend_existing': True, 'mysql_engine': 'InnoDB',
513 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
513 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
514 )
514 )
515 __mapper_args__ = {}
515
516
516
517 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
517 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
518 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
518 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -543,7 +543,7 b' class UserIpMap(Base, BaseModel):'
543 {'extend_existing': True, 'mysql_engine': 'InnoDB',
543 {'extend_existing': True, 'mysql_engine': 'InnoDB',
544 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
544 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
545 )
545 )
546 __mapper_args__ = {}
546
547
547
548 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
548 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
549 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
549 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -767,7 +767,7 b' class RepoGroup(Base, BaseModel):'
767 {'extend_existing': True, 'mysql_engine': 'InnoDB',
767 {'extend_existing': True, 'mysql_engine': 'InnoDB',
768 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
768 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
769 )
769 )
770 __mapper_args__ = {'order_by': 'group_name'}
770
771
771
772 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
772 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
773 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
773 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
@@ -600,7 +600,7 b' class UserApiKeys(Base, BaseModel):'
600 {'extend_existing': True, 'mysql_engine': 'InnoDB',
600 {'extend_existing': True, 'mysql_engine': 'InnoDB',
601 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
601 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
602 )
602 )
603 __mapper_args__ = {}
603
604
604
605 # ApiKey role
605 # ApiKey role
606 ROLE_ALL = 'token_role_all'
606 ROLE_ALL = 'token_role_all'
@@ -629,7 +629,7 b' class UserEmailMap(Base, BaseModel):'
629 {'extend_existing': True, 'mysql_engine': 'InnoDB',
629 {'extend_existing': True, 'mysql_engine': 'InnoDB',
630 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
630 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
631 )
631 )
632 __mapper_args__ = {}
632
633
633
634 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
634 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
635 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
635 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -660,7 +660,7 b' class UserIpMap(Base, BaseModel):'
660 {'extend_existing': True, 'mysql_engine': 'InnoDB',
660 {'extend_existing': True, 'mysql_engine': 'InnoDB',
661 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
661 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
662 )
662 )
663 __mapper_args__ = {}
663
664
664
665 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
665 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
666 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
666 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -889,7 +889,7 b' class RepoGroup(Base, BaseModel):'
889 {'extend_existing': True, 'mysql_engine': 'InnoDB',
889 {'extend_existing': True, 'mysql_engine': 'InnoDB',
890 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
890 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
891 )
891 )
892 __mapper_args__ = {'order_by': 'group_name'}
892
893
893
894 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
894 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
895 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
895 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
@@ -623,7 +623,7 b' class UserApiKeys(Base, BaseModel):'
623 {'extend_existing': True, 'mysql_engine': 'InnoDB',
623 {'extend_existing': True, 'mysql_engine': 'InnoDB',
624 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
624 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
625 )
625 )
626 __mapper_args__ = {}
626
627
627
628 # ApiKey role
628 # ApiKey role
629 ROLE_ALL = 'token_role_all'
629 ROLE_ALL = 'token_role_all'
@@ -652,7 +652,7 b' class UserEmailMap(Base, BaseModel):'
652 {'extend_existing': True, 'mysql_engine': 'InnoDB',
652 {'extend_existing': True, 'mysql_engine': 'InnoDB',
653 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
653 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
654 )
654 )
655 __mapper_args__ = {}
655
656
656
657 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
657 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
658 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
658 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -683,7 +683,7 b' class UserIpMap(Base, BaseModel):'
683 {'extend_existing': True, 'mysql_engine': 'InnoDB',
683 {'extend_existing': True, 'mysql_engine': 'InnoDB',
684 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
684 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
685 )
685 )
686 __mapper_args__ = {}
686
687
687
688 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
688 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
689 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
689 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -914,7 +914,7 b' class RepoGroup(Base, BaseModel):'
914 {'extend_existing': True, 'mysql_engine': 'InnoDB',
914 {'extend_existing': True, 'mysql_engine': 'InnoDB',
915 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
915 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
916 )
916 )
917 __mapper_args__ = {'order_by': 'group_name'}
917
918
918
919 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
919 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
920 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
920 group_name = Column("group_name", String(255), nullable=False, unique=True, default=None)
@@ -1031,7 +1031,7 b' class UserApiKeys(Base, BaseModel):'
1031 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1031 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1032 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
1032 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
1033 )
1033 )
1034 __mapper_args__ = {}
1034
1035
1035
1036 # ApiKey role
1036 # ApiKey role
1037 ROLE_ALL = 'token_role_all'
1037 ROLE_ALL = 'token_role_all'
@@ -1134,7 +1134,7 b' class UserEmailMap(Base, BaseModel):'
1134 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1134 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1135 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
1135 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
1136 )
1136 )
1137 __mapper_args__ = {}
1137
1138
1138
1139 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1139 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1140 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
1140 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -1165,7 +1165,7 b' class UserIpMap(Base, BaseModel):'
1165 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1165 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1166 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
1166 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
1167 )
1167 )
1168 __mapper_args__ = {}
1168
1169
1169
1170 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1170 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1171 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
1171 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -1205,7 +1205,7 b' class UserSshKeys(Base, BaseModel):'
1205 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1205 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1206 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
1206 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
1207 )
1207 )
1208 __mapper_args__ = {}
1208
1209
1209
1210 ssh_key_id = Column('ssh_key_id', Integer(), nullable=False, unique=True, default=None, primary_key=True)
1210 ssh_key_id = Column('ssh_key_id', Integer(), nullable=False, unique=True, default=None, primary_key=True)
1211 ssh_key_data = Column('ssh_key_data', String(10240), nullable=False, unique=None, default=None)
1211 ssh_key_data = Column('ssh_key_data', String(10240), nullable=False, unique=None, default=None)
@@ -2296,7 +2296,7 b' class RepoGroup(Base, BaseModel):'
2296 {'extend_existing': True, 'mysql_engine': 'InnoDB',
2296 {'extend_existing': True, 'mysql_engine': 'InnoDB',
2297 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
2297 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
2298 )
2298 )
2299 __mapper_args__ = {'order_by': 'group_name'}
2299
2300
2300
2301 CHOICES_SEPARATOR = '/' # used to generate select2 choices for nested groups
2301 CHOICES_SEPARATOR = '/' # used to generate select2 choices for nested groups
2302
2302
@@ -1035,7 +1035,7 b' class UserApiKeys(Base, BaseModel):'
1035 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1035 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1036 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
1036 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
1037 )
1037 )
1038 __mapper_args__ = {}
1038
1039
1039
1040 # ApiKey role
1040 # ApiKey role
1041 ROLE_ALL = 'token_role_all'
1041 ROLE_ALL = 'token_role_all'
@@ -1138,7 +1138,7 b' class UserEmailMap(Base, BaseModel):'
1138 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1138 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1139 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
1139 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
1140 )
1140 )
1141 __mapper_args__ = {}
1141
1142
1142
1143 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1143 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1144 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
1144 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -1169,7 +1169,7 b' class UserIpMap(Base, BaseModel):'
1169 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1169 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1170 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
1170 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
1171 )
1171 )
1172 __mapper_args__ = {}
1172
1173
1173
1174 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1174 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1175 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
1175 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -1209,7 +1209,7 b' class UserSshKeys(Base, BaseModel):'
1209 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1209 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1210 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
1210 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
1211 )
1211 )
1212 __mapper_args__ = {}
1212
1213
1213
1214 ssh_key_id = Column('ssh_key_id', Integer(), nullable=False, unique=True, default=None, primary_key=True)
1214 ssh_key_id = Column('ssh_key_id', Integer(), nullable=False, unique=True, default=None, primary_key=True)
1215 ssh_key_data = Column('ssh_key_data', String(10240), nullable=False, unique=None, default=None)
1215 ssh_key_data = Column('ssh_key_data', String(10240), nullable=False, unique=None, default=None)
@@ -2362,7 +2362,7 b' class RepoGroup(Base, BaseModel):'
2362 {'extend_existing': True, 'mysql_engine': 'InnoDB',
2362 {'extend_existing': True, 'mysql_engine': 'InnoDB',
2363 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
2363 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
2364 )
2364 )
2365 __mapper_args__ = {'order_by': 'group_name'}
2365
2366
2366
2367 CHOICES_SEPARATOR = '/' # used to generate select2 choices for nested groups
2367 CHOICES_SEPARATOR = '/' # used to generate select2 choices for nested groups
2368
2368
@@ -1046,7 +1046,7 b' class UserApiKeys(Base, BaseModel):'
1046 Index('uak_api_key_expires_idx', 'api_key', 'expires'),
1046 Index('uak_api_key_expires_idx', 'api_key', 'expires'),
1047 base_table_args
1047 base_table_args
1048 )
1048 )
1049 __mapper_args__ = {}
1049
1050
1050
1051 # ApiKey role
1051 # ApiKey role
1052 ROLE_ALL = 'token_role_all'
1052 ROLE_ALL = 'token_role_all'
@@ -1148,7 +1148,7 b' class UserEmailMap(Base, BaseModel):'
1148 UniqueConstraint('email'),
1148 UniqueConstraint('email'),
1149 base_table_args
1149 base_table_args
1150 )
1150 )
1151 __mapper_args__ = {}
1151
1152
1152
1153 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1153 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1154 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
1154 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -1178,7 +1178,7 b' class UserIpMap(Base, BaseModel):'
1178 UniqueConstraint('user_id', 'ip_addr'),
1178 UniqueConstraint('user_id', 'ip_addr'),
1179 base_table_args
1179 base_table_args
1180 )
1180 )
1181 __mapper_args__ = {}
1181
1182
1182
1183 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1183 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1184 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
1184 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -1217,7 +1217,7 b' class UserSshKeys(Base, BaseModel):'
1217
1217
1218 base_table_args
1218 base_table_args
1219 )
1219 )
1220 __mapper_args__ = {}
1220
1221
1221
1222 ssh_key_id = Column('ssh_key_id', Integer(), nullable=False, unique=True, default=None, primary_key=True)
1222 ssh_key_id = Column('ssh_key_id', Integer(), nullable=False, unique=True, default=None, primary_key=True)
1223 ssh_key_data = Column('ssh_key_data', String(10240), nullable=False, unique=None, default=None)
1223 ssh_key_data = Column('ssh_key_data', String(10240), nullable=False, unique=None, default=None)
@@ -2436,7 +2436,7 b' class RepoGroup(Base, BaseModel):'
2436 UniqueConstraint('group_name', 'group_parent_id'),
2436 UniqueConstraint('group_name', 'group_parent_id'),
2437 base_table_args,
2437 base_table_args,
2438 )
2438 )
2439 __mapper_args__ = {'order_by': 'group_name'}
2439
2440
2440
2441 CHOICES_SEPARATOR = '/' # used to generate select2 choices for nested groups
2441 CHOICES_SEPARATOR = '/' # used to generate select2 choices for nested groups
2442
2442
@@ -1048,7 +1048,7 b' class UserApiKeys(Base, BaseModel):'
1048 Index('uak_api_key_expires_idx', 'api_key', 'expires'),
1048 Index('uak_api_key_expires_idx', 'api_key', 'expires'),
1049 base_table_args
1049 base_table_args
1050 )
1050 )
1051 __mapper_args__ = {}
1051
1052
1052
1053 # ApiKey role
1053 # ApiKey role
1054 ROLE_ALL = 'token_role_all'
1054 ROLE_ALL = 'token_role_all'
@@ -1150,7 +1150,7 b' class UserEmailMap(Base, BaseModel):'
1150 UniqueConstraint('email'),
1150 UniqueConstraint('email'),
1151 base_table_args
1151 base_table_args
1152 )
1152 )
1153 __mapper_args__ = {}
1153
1154
1154
1155 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1155 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1156 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
1156 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -1180,7 +1180,7 b' class UserIpMap(Base, BaseModel):'
1180 UniqueConstraint('user_id', 'ip_addr'),
1180 UniqueConstraint('user_id', 'ip_addr'),
1181 base_table_args
1181 base_table_args
1182 )
1182 )
1183 __mapper_args__ = {}
1183
1184
1184
1185 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1185 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1186 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
1186 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -1219,7 +1219,7 b' class UserSshKeys(Base, BaseModel):'
1219
1219
1220 base_table_args
1220 base_table_args
1221 )
1221 )
1222 __mapper_args__ = {}
1222
1223
1223
1224 ssh_key_id = Column('ssh_key_id', Integer(), nullable=False, unique=True, default=None, primary_key=True)
1224 ssh_key_id = Column('ssh_key_id', Integer(), nullable=False, unique=True, default=None, primary_key=True)
1225 ssh_key_data = Column('ssh_key_data', String(10240), nullable=False, unique=None, default=None)
1225 ssh_key_data = Column('ssh_key_data', String(10240), nullable=False, unique=None, default=None)
@@ -2459,7 +2459,7 b' class RepoGroup(Base, BaseModel):'
2459 UniqueConstraint('group_name', 'group_parent_id'),
2459 UniqueConstraint('group_name', 'group_parent_id'),
2460 base_table_args,
2460 base_table_args,
2461 )
2461 )
2462 __mapper_args__ = {'order_by': 'group_name'}
2462
2463
2463
2464 CHOICES_SEPARATOR = '/' # used to generate select2 choices for nested groups
2464 CHOICES_SEPARATOR = '/' # used to generate select2 choices for nested groups
2465
2465
@@ -1048,7 +1048,7 b' class UserApiKeys(Base, BaseModel):'
1048 Index('uak_api_key_expires_idx', 'api_key', 'expires'),
1048 Index('uak_api_key_expires_idx', 'api_key', 'expires'),
1049 base_table_args
1049 base_table_args
1050 )
1050 )
1051 __mapper_args__ = {}
1051
1052
1052
1053 # ApiKey role
1053 # ApiKey role
1054 ROLE_ALL = 'token_role_all'
1054 ROLE_ALL = 'token_role_all'
@@ -1150,7 +1150,7 b' class UserEmailMap(Base, BaseModel):'
1150 UniqueConstraint('email'),
1150 UniqueConstraint('email'),
1151 base_table_args
1151 base_table_args
1152 )
1152 )
1153 __mapper_args__ = {}
1153
1154
1154
1155 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1155 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1156 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
1156 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -1180,7 +1180,7 b' class UserIpMap(Base, BaseModel):'
1180 UniqueConstraint('user_id', 'ip_addr'),
1180 UniqueConstraint('user_id', 'ip_addr'),
1181 base_table_args
1181 base_table_args
1182 )
1182 )
1183 __mapper_args__ = {}
1183
1184
1184
1185 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1185 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1186 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
1186 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -1219,7 +1219,7 b' class UserSshKeys(Base, BaseModel):'
1219
1219
1220 base_table_args
1220 base_table_args
1221 )
1221 )
1222 __mapper_args__ = {}
1222
1223
1223
1224 ssh_key_id = Column('ssh_key_id', Integer(), nullable=False, unique=True, default=None, primary_key=True)
1224 ssh_key_id = Column('ssh_key_id', Integer(), nullable=False, unique=True, default=None, primary_key=True)
1225 ssh_key_data = Column('ssh_key_data', String(10240), nullable=False, unique=None, default=None)
1225 ssh_key_data = Column('ssh_key_data', String(10240), nullable=False, unique=None, default=None)
@@ -2459,7 +2459,7 b' class RepoGroup(Base, BaseModel):'
2459 UniqueConstraint('group_name', 'group_parent_id'),
2459 UniqueConstraint('group_name', 'group_parent_id'),
2460 base_table_args,
2460 base_table_args,
2461 )
2461 )
2462 __mapper_args__ = {'order_by': 'group_name'}
2462
2463
2463
2464 CHOICES_SEPARATOR = '/' # used to generate select2 choices for nested groups
2464 CHOICES_SEPARATOR = '/' # used to generate select2 choices for nested groups
2465
2465
@@ -1065,7 +1065,7 b' class UserApiKeys(Base, BaseModel):'
1065 Index('uak_api_key_expires_idx', 'api_key', 'expires'),
1065 Index('uak_api_key_expires_idx', 'api_key', 'expires'),
1066 base_table_args
1066 base_table_args
1067 )
1067 )
1068 __mapper_args__ = {}
1068
1069
1069
1070 # ApiKey role
1070 # ApiKey role
1071 ROLE_ALL = 'token_role_all'
1071 ROLE_ALL = 'token_role_all'
@@ -1167,7 +1167,7 b' class UserEmailMap(Base, BaseModel):'
1167 UniqueConstraint('email'),
1167 UniqueConstraint('email'),
1168 base_table_args
1168 base_table_args
1169 )
1169 )
1170 __mapper_args__ = {}
1170
1171
1171
1172 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1172 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1173 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
1173 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -1197,7 +1197,7 b' class UserIpMap(Base, BaseModel):'
1197 UniqueConstraint('user_id', 'ip_addr'),
1197 UniqueConstraint('user_id', 'ip_addr'),
1198 base_table_args
1198 base_table_args
1199 )
1199 )
1200 __mapper_args__ = {}
1200
1201
1201
1202 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1202 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1203 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
1203 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -1236,7 +1236,7 b' class UserSshKeys(Base, BaseModel):'
1236
1236
1237 base_table_args
1237 base_table_args
1238 )
1238 )
1239 __mapper_args__ = {}
1239
1240
1240
1241 ssh_key_id = Column('ssh_key_id', Integer(), nullable=False, unique=True, default=None, primary_key=True)
1241 ssh_key_id = Column('ssh_key_id', Integer(), nullable=False, unique=True, default=None, primary_key=True)
1242 ssh_key_data = Column('ssh_key_data', String(10240), nullable=False, unique=None, default=None)
1242 ssh_key_data = Column('ssh_key_data', String(10240), nullable=False, unique=None, default=None)
@@ -2530,7 +2530,7 b' class RepoGroup(Base, BaseModel):'
2530 UniqueConstraint('group_name', 'group_parent_id'),
2530 UniqueConstraint('group_name', 'group_parent_id'),
2531 base_table_args,
2531 base_table_args,
2532 )
2532 )
2533 __mapper_args__ = {'order_by': 'group_name'}
2533
2534
2534
2535 CHOICES_SEPARATOR = '/' # used to generate select2 choices for nested groups
2535 CHOICES_SEPARATOR = '/' # used to generate select2 choices for nested groups
2536
2536
@@ -1116,7 +1116,7 b' class UserApiKeys(Base, BaseModel):'
1116 Index('uak_api_key_expires_idx', 'api_key', 'expires'),
1116 Index('uak_api_key_expires_idx', 'api_key', 'expires'),
1117 base_table_args
1117 base_table_args
1118 )
1118 )
1119 __mapper_args__ = {}
1119
1120
1120
1121 # ApiKey role
1121 # ApiKey role
1122 ROLE_ALL = 'token_role_all'
1122 ROLE_ALL = 'token_role_all'
@@ -1220,7 +1220,7 b' class UserEmailMap(Base, BaseModel):'
1220 UniqueConstraint('email'),
1220 UniqueConstraint('email'),
1221 base_table_args
1221 base_table_args
1222 )
1222 )
1223 __mapper_args__ = {}
1223
1224
1224
1225 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1225 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1226 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
1226 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -1250,7 +1250,7 b' class UserIpMap(Base, BaseModel):'
1250 UniqueConstraint('user_id', 'ip_addr'),
1250 UniqueConstraint('user_id', 'ip_addr'),
1251 base_table_args
1251 base_table_args
1252 )
1252 )
1253 __mapper_args__ = {}
1253
1254
1254
1255 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1255 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1256 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
1256 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -1289,7 +1289,7 b' class UserSshKeys(Base, BaseModel):'
1289
1289
1290 base_table_args
1290 base_table_args
1291 )
1291 )
1292 __mapper_args__ = {}
1292
1293
1293
1294 ssh_key_id = Column('ssh_key_id', Integer(), nullable=False, unique=True, default=None, primary_key=True)
1294 ssh_key_id = Column('ssh_key_id', Integer(), nullable=False, unique=True, default=None, primary_key=True)
1295 ssh_key_data = Column('ssh_key_data', String(10240), nullable=False, unique=None, default=None)
1295 ssh_key_data = Column('ssh_key_data', String(10240), nullable=False, unique=None, default=None)
@@ -2615,7 +2615,7 b' class RepoGroup(Base, BaseModel):'
2615 UniqueConstraint('group_name', 'group_parent_id'),
2615 UniqueConstraint('group_name', 'group_parent_id'),
2616 base_table_args,
2616 base_table_args,
2617 )
2617 )
2618 __mapper_args__ = {'order_by': 'group_name'}
2618
2619
2619
2620 CHOICES_SEPARATOR = '/' # used to generate select2 choices for nested groups
2620 CHOICES_SEPARATOR = '/' # used to generate select2 choices for nested groups
2621
2621
@@ -1122,7 +1122,7 b' class UserApiKeys(Base, BaseModel):'
1122 Index('uak_api_key_expires_idx', 'api_key', 'expires'),
1122 Index('uak_api_key_expires_idx', 'api_key', 'expires'),
1123 base_table_args
1123 base_table_args
1124 )
1124 )
1125 __mapper_args__ = {}
1125
1126
1126
1127 # ApiKey role
1127 # ApiKey role
1128 ROLE_ALL = 'token_role_all'
1128 ROLE_ALL = 'token_role_all'
@@ -1226,7 +1226,7 b' class UserEmailMap(Base, BaseModel):'
1226 UniqueConstraint('email'),
1226 UniqueConstraint('email'),
1227 base_table_args
1227 base_table_args
1228 )
1228 )
1229 __mapper_args__ = {}
1229
1230
1230
1231 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1231 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1232 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
1232 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -1256,7 +1256,7 b' class UserIpMap(Base, BaseModel):'
1256 UniqueConstraint('user_id', 'ip_addr'),
1256 UniqueConstraint('user_id', 'ip_addr'),
1257 base_table_args
1257 base_table_args
1258 )
1258 )
1259 __mapper_args__ = {}
1259
1260
1260
1261 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1261 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1262 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
1262 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -1295,7 +1295,7 b' class UserSshKeys(Base, BaseModel):'
1295
1295
1296 base_table_args
1296 base_table_args
1297 )
1297 )
1298 __mapper_args__ = {}
1298
1299
1299
1300 ssh_key_id = Column('ssh_key_id', Integer(), nullable=False, unique=True, default=None, primary_key=True)
1300 ssh_key_id = Column('ssh_key_id', Integer(), nullable=False, unique=True, default=None, primary_key=True)
1301 ssh_key_data = Column('ssh_key_data', String(10240), nullable=False, unique=None, default=None)
1301 ssh_key_data = Column('ssh_key_data', String(10240), nullable=False, unique=None, default=None)
@@ -2621,7 +2621,7 b' class RepoGroup(Base, BaseModel):'
2621 UniqueConstraint('group_name', 'group_parent_id'),
2621 UniqueConstraint('group_name', 'group_parent_id'),
2622 base_table_args,
2622 base_table_args,
2623 )
2623 )
2624 __mapper_args__ = {'order_by': 'group_name'}
2624
2625
2625
2626 CHOICES_SEPARATOR = '/' # used to generate select2 choices for nested groups
2626 CHOICES_SEPARATOR = '/' # used to generate select2 choices for nested groups
2627
2627
@@ -1127,7 +1127,7 b' class UserApiKeys(Base, BaseModel):'
1127 Index('uak_api_key_expires_idx', 'api_key', 'expires'),
1127 Index('uak_api_key_expires_idx', 'api_key', 'expires'),
1128 base_table_args
1128 base_table_args
1129 )
1129 )
1130 __mapper_args__ = {}
1130
1131
1131
1132 # ApiKey role
1132 # ApiKey role
1133 ROLE_ALL = 'token_role_all'
1133 ROLE_ALL = 'token_role_all'
@@ -1249,7 +1249,7 b' class UserEmailMap(Base, BaseModel):'
1249 UniqueConstraint('email'),
1249 UniqueConstraint('email'),
1250 base_table_args
1250 base_table_args
1251 )
1251 )
1252 __mapper_args__ = {}
1252
1253
1253
1254 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1254 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1255 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
1255 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -1279,7 +1279,7 b' class UserIpMap(Base, BaseModel):'
1279 UniqueConstraint('user_id', 'ip_addr'),
1279 UniqueConstraint('user_id', 'ip_addr'),
1280 base_table_args
1280 base_table_args
1281 )
1281 )
1282 __mapper_args__ = {}
1282
1283
1283
1284 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1284 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1285 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
1285 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -1318,7 +1318,7 b' class UserSshKeys(Base, BaseModel):'
1318
1318
1319 base_table_args
1319 base_table_args
1320 )
1320 )
1321 __mapper_args__ = {}
1321
1322
1322
1323 ssh_key_id = Column('ssh_key_id', Integer(), nullable=False, unique=True, default=None, primary_key=True)
1323 ssh_key_id = Column('ssh_key_id', Integer(), nullable=False, unique=True, default=None, primary_key=True)
1324 ssh_key_data = Column('ssh_key_data', String(10240), nullable=False, unique=None, default=None)
1324 ssh_key_data = Column('ssh_key_data', String(10240), nullable=False, unique=None, default=None)
@@ -2652,7 +2652,7 b' class RepoGroup(Base, BaseModel):'
2652 UniqueConstraint('group_name', 'group_parent_id'),
2652 UniqueConstraint('group_name', 'group_parent_id'),
2653 base_table_args,
2653 base_table_args,
2654 )
2654 )
2655 __mapper_args__ = {'order_by': 'group_name'}
2655
2656
2656
2657 CHOICES_SEPARATOR = '/' # used to generate select2 choices for nested groups
2657 CHOICES_SEPARATOR = '/' # used to generate select2 choices for nested groups
2658
2658
@@ -882,7 +882,7 b' class UserApiKeys(Base, BaseModel):'
882 {'extend_existing': True, 'mysql_engine': 'InnoDB',
882 {'extend_existing': True, 'mysql_engine': 'InnoDB',
883 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
883 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
884 )
884 )
885 __mapper_args__ = {}
885
886
886
887 # ApiKey role
887 # ApiKey role
888 ROLE_ALL = 'token_role_all'
888 ROLE_ALL = 'token_role_all'
@@ -931,7 +931,7 b' class UserEmailMap(Base, BaseModel):'
931 {'extend_existing': True, 'mysql_engine': 'InnoDB',
931 {'extend_existing': True, 'mysql_engine': 'InnoDB',
932 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
932 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
933 )
933 )
934 __mapper_args__ = {}
934
935
935
936 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
936 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
937 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
937 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -962,7 +962,7 b' class UserIpMap(Base, BaseModel):'
962 {'extend_existing': True, 'mysql_engine': 'InnoDB',
962 {'extend_existing': True, 'mysql_engine': 'InnoDB',
963 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
963 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
964 )
964 )
965 __mapper_args__ = {}
965
966
966
967 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
967 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
968 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
968 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -2008,7 +2008,7 b' class RepoGroup(Base, BaseModel):'
2008 {'extend_existing': True, 'mysql_engine': 'InnoDB',
2008 {'extend_existing': True, 'mysql_engine': 'InnoDB',
2009 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
2009 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
2010 )
2010 )
2011 __mapper_args__ = {'order_by': 'group_name'}
2011
2012
2012
2013 CHOICES_SEPARATOR = '/' # used to generate select2 choices for nested groups
2013 CHOICES_SEPARATOR = '/' # used to generate select2 choices for nested groups
2014
2014
@@ -883,7 +883,7 b' class UserApiKeys(Base, BaseModel):'
883 {'extend_existing': True, 'mysql_engine': 'InnoDB',
883 {'extend_existing': True, 'mysql_engine': 'InnoDB',
884 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
884 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
885 )
885 )
886 __mapper_args__ = {}
886
887
887
888 # ApiKey role
888 # ApiKey role
889 ROLE_ALL = 'token_role_all'
889 ROLE_ALL = 'token_role_all'
@@ -932,7 +932,7 b' class UserEmailMap(Base, BaseModel):'
932 {'extend_existing': True, 'mysql_engine': 'InnoDB',
932 {'extend_existing': True, 'mysql_engine': 'InnoDB',
933 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
933 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
934 )
934 )
935 __mapper_args__ = {}
935
936
936
937 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
937 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
938 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
938 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -963,7 +963,7 b' class UserIpMap(Base, BaseModel):'
963 {'extend_existing': True, 'mysql_engine': 'InnoDB',
963 {'extend_existing': True, 'mysql_engine': 'InnoDB',
964 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
964 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
965 )
965 )
966 __mapper_args__ = {}
966
967
967
968 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
968 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
969 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
969 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -2000,7 +2000,7 b' class RepoGroup(Base, BaseModel):'
2000 {'extend_existing': True, 'mysql_engine': 'InnoDB',
2000 {'extend_existing': True, 'mysql_engine': 'InnoDB',
2001 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
2001 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
2002 )
2002 )
2003 __mapper_args__ = {'order_by': 'group_name'}
2003
2004
2004
2005 CHOICES_SEPARATOR = '/' # used to generate select2 choices for nested groups
2005 CHOICES_SEPARATOR = '/' # used to generate select2 choices for nested groups
2006
2006
@@ -882,7 +882,7 b' class UserApiKeys(Base, BaseModel):'
882 {'extend_existing': True, 'mysql_engine': 'InnoDB',
882 {'extend_existing': True, 'mysql_engine': 'InnoDB',
883 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
883 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
884 )
884 )
885 __mapper_args__ = {}
885
886
886
887 # ApiKey role
887 # ApiKey role
888 ROLE_ALL = 'token_role_all'
888 ROLE_ALL = 'token_role_all'
@@ -931,7 +931,7 b' class UserEmailMap(Base, BaseModel):'
931 {'extend_existing': True, 'mysql_engine': 'InnoDB',
931 {'extend_existing': True, 'mysql_engine': 'InnoDB',
932 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
932 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
933 )
933 )
934 __mapper_args__ = {}
934
935
935
936 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
936 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
937 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
937 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -962,7 +962,7 b' class UserIpMap(Base, BaseModel):'
962 {'extend_existing': True, 'mysql_engine': 'InnoDB',
962 {'extend_existing': True, 'mysql_engine': 'InnoDB',
963 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
963 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
964 )
964 )
965 __mapper_args__ = {}
965
966
966
967 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
967 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
968 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
968 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -1999,7 +1999,7 b' class RepoGroup(Base, BaseModel):'
1999 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1999 {'extend_existing': True, 'mysql_engine': 'InnoDB',
2000 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
2000 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
2001 )
2001 )
2002 __mapper_args__ = {'order_by': 'group_name'}
2002
2003
2003
2004 CHOICES_SEPARATOR = '/' # used to generate select2 choices for nested groups
2004 CHOICES_SEPARATOR = '/' # used to generate select2 choices for nested groups
2005
2005
@@ -884,7 +884,7 b' class UserApiKeys(Base, BaseModel):'
884 {'extend_existing': True, 'mysql_engine': 'InnoDB',
884 {'extend_existing': True, 'mysql_engine': 'InnoDB',
885 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
885 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
886 )
886 )
887 __mapper_args__ = {}
887
888
888
889 # ApiKey role
889 # ApiKey role
890 ROLE_ALL = 'token_role_all'
890 ROLE_ALL = 'token_role_all'
@@ -933,7 +933,7 b' class UserEmailMap(Base, BaseModel):'
933 {'extend_existing': True, 'mysql_engine': 'InnoDB',
933 {'extend_existing': True, 'mysql_engine': 'InnoDB',
934 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
934 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
935 )
935 )
936 __mapper_args__ = {}
936
937
937
938 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
938 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
939 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
939 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -964,7 +964,7 b' class UserIpMap(Base, BaseModel):'
964 {'extend_existing': True, 'mysql_engine': 'InnoDB',
964 {'extend_existing': True, 'mysql_engine': 'InnoDB',
965 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
965 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
966 )
966 )
967 __mapper_args__ = {}
967
968
968
969 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
969 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
970 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
970 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -2001,7 +2001,7 b' class RepoGroup(Base, BaseModel):'
2001 {'extend_existing': True, 'mysql_engine': 'InnoDB',
2001 {'extend_existing': True, 'mysql_engine': 'InnoDB',
2002 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
2002 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
2003 )
2003 )
2004 __mapper_args__ = {'order_by': 'group_name'}
2004
2005
2005
2006 CHOICES_SEPARATOR = '/' # used to generate select2 choices for nested groups
2006 CHOICES_SEPARATOR = '/' # used to generate select2 choices for nested groups
2007
2007
@@ -884,7 +884,7 b' class UserApiKeys(Base, BaseModel):'
884 {'extend_existing': True, 'mysql_engine': 'InnoDB',
884 {'extend_existing': True, 'mysql_engine': 'InnoDB',
885 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
885 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
886 )
886 )
887 __mapper_args__ = {}
887
888
888
889 # ApiKey role
889 # ApiKey role
890 ROLE_ALL = 'token_role_all'
890 ROLE_ALL = 'token_role_all'
@@ -933,7 +933,7 b' class UserEmailMap(Base, BaseModel):'
933 {'extend_existing': True, 'mysql_engine': 'InnoDB',
933 {'extend_existing': True, 'mysql_engine': 'InnoDB',
934 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
934 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
935 )
935 )
936 __mapper_args__ = {}
936
937
937
938 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
938 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
939 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
939 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -964,7 +964,7 b' class UserIpMap(Base, BaseModel):'
964 {'extend_existing': True, 'mysql_engine': 'InnoDB',
964 {'extend_existing': True, 'mysql_engine': 'InnoDB',
965 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
965 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
966 )
966 )
967 __mapper_args__ = {}
967
968
968
969 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
969 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
970 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
970 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -2001,7 +2001,7 b' class RepoGroup(Base, BaseModel):'
2001 {'extend_existing': True, 'mysql_engine': 'InnoDB',
2001 {'extend_existing': True, 'mysql_engine': 'InnoDB',
2002 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
2002 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
2003 )
2003 )
2004 __mapper_args__ = {'order_by': 'group_name'}
2004
2005
2005
2006 CHOICES_SEPARATOR = '/' # used to generate select2 choices for nested groups
2006 CHOICES_SEPARATOR = '/' # used to generate select2 choices for nested groups
2007
2007
@@ -927,7 +927,7 b' class UserApiKeys(Base, BaseModel):'
927 {'extend_existing': True, 'mysql_engine': 'InnoDB',
927 {'extend_existing': True, 'mysql_engine': 'InnoDB',
928 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
928 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
929 )
929 )
930 __mapper_args__ = {}
930
931
931
932 # ApiKey role
932 # ApiKey role
933 ROLE_ALL = 'token_role_all'
933 ROLE_ALL = 'token_role_all'
@@ -976,7 +976,7 b' class UserEmailMap(Base, BaseModel):'
976 {'extend_existing': True, 'mysql_engine': 'InnoDB',
976 {'extend_existing': True, 'mysql_engine': 'InnoDB',
977 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
977 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
978 )
978 )
979 __mapper_args__ = {}
979
980
980
981 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
981 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
982 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
982 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -1007,7 +1007,7 b' class UserIpMap(Base, BaseModel):'
1007 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1007 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1008 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
1008 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
1009 )
1009 )
1010 __mapper_args__ = {}
1010
1011
1011
1012 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1012 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1013 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
1013 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -2044,7 +2044,7 b' class RepoGroup(Base, BaseModel):'
2044 {'extend_existing': True, 'mysql_engine': 'InnoDB',
2044 {'extend_existing': True, 'mysql_engine': 'InnoDB',
2045 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
2045 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
2046 )
2046 )
2047 __mapper_args__ = {'order_by': 'group_name'}
2047
2048
2048
2049 CHOICES_SEPARATOR = '/' # used to generate select2 choices for nested groups
2049 CHOICES_SEPARATOR = '/' # used to generate select2 choices for nested groups
2050
2050
@@ -928,7 +928,7 b' class UserApiKeys(Base, BaseModel):'
928 {'extend_existing': True, 'mysql_engine': 'InnoDB',
928 {'extend_existing': True, 'mysql_engine': 'InnoDB',
929 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
929 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
930 )
930 )
931 __mapper_args__ = {}
931
932
932
933 # ApiKey role
933 # ApiKey role
934 ROLE_ALL = 'token_role_all'
934 ROLE_ALL = 'token_role_all'
@@ -977,7 +977,7 b' class UserEmailMap(Base, BaseModel):'
977 {'extend_existing': True, 'mysql_engine': 'InnoDB',
977 {'extend_existing': True, 'mysql_engine': 'InnoDB',
978 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
978 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
979 )
979 )
980 __mapper_args__ = {}
980
981
981
982 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
982 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
983 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
983 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -1008,7 +1008,7 b' class UserIpMap(Base, BaseModel):'
1008 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1008 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1009 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
1009 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
1010 )
1010 )
1011 __mapper_args__ = {}
1011
1012
1012
1013 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1013 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1014 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
1014 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -2045,7 +2045,7 b' class RepoGroup(Base, BaseModel):'
2045 {'extend_existing': True, 'mysql_engine': 'InnoDB',
2045 {'extend_existing': True, 'mysql_engine': 'InnoDB',
2046 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
2046 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
2047 )
2047 )
2048 __mapper_args__ = {'order_by': 'group_name'}
2048
2049
2049
2050 CHOICES_SEPARATOR = '/' # used to generate select2 choices for nested groups
2050 CHOICES_SEPARATOR = '/' # used to generate select2 choices for nested groups
2051
2051
@@ -978,7 +978,6 b' class UserApiKeys(Base, BaseModel):'
978 {'extend_existing': True, 'mysql_engine': 'InnoDB',
978 {'extend_existing': True, 'mysql_engine': 'InnoDB',
979 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
979 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
980 )
980 )
981 __mapper_args__ = {}
982
981
983 # ApiKey role
982 # ApiKey role
984 ROLE_ALL = 'token_role_all'
983 ROLE_ALL = 'token_role_all'
@@ -1081,7 +1080,6 b' class UserEmailMap(Base, BaseModel):'
1081 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1080 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1082 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
1081 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
1083 )
1082 )
1084 __mapper_args__ = {}
1085
1083
1086 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1084 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1087 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
1085 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -1112,7 +1110,6 b' class UserIpMap(Base, BaseModel):'
1112 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1110 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1113 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
1111 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
1114 )
1112 )
1115 __mapper_args__ = {}
1116
1113
1117 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1114 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1118 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
1115 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -1151,7 +1148,7 b' class UserSshKeys(Base, BaseModel):'
1151 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1148 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1152 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
1149 'mysql_charset': 'utf8', 'sqlite_autoincrement': True}
1153 )
1150 )
1154 __mapper_args__ = {}
1151
1155
1152
1156 ssh_key_id = Column('ssh_key_id', Integer(), nullable=False, unique=True, default=None, primary_key=True)
1153 ssh_key_id = Column('ssh_key_id', Integer(), nullable=False, unique=True, default=None, primary_key=True)
1157 ssh_key_data = Column('ssh_key_data', String(10240), nullable=False, unique=None, default=None)
1154 ssh_key_data = Column('ssh_key_data', String(10240), nullable=False, unique=None, default=None)
@@ -2232,7 +2229,6 b' class RepoGroup(Base, BaseModel):'
2232 {'extend_existing': True, 'mysql_engine': 'InnoDB',
2229 {'extend_existing': True, 'mysql_engine': 'InnoDB',
2233 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
2230 'mysql_charset': 'utf8', 'sqlite_autoincrement': True},
2234 )
2231 )
2235 __mapper_args__ = {'order_by': 'group_name'}
2236
2232
2237 CHOICES_SEPARATOR = '/' # used to generate select2 choices for nested groups
2233 CHOICES_SEPARATOR = '/' # used to generate select2 choices for nested groups
2238
2234
@@ -1161,7 +1161,6 b' class UserApiKeys(Base, BaseModel):'
1161 Index('uak_api_key_expires_idx', 'api_key', 'expires'),
1161 Index('uak_api_key_expires_idx', 'api_key', 'expires'),
1162 base_table_args
1162 base_table_args
1163 )
1163 )
1164 __mapper_args__ = {}
1165
1164
1166 # ApiKey role
1165 # ApiKey role
1167 ROLE_ALL = 'token_role_all'
1166 ROLE_ALL = 'token_role_all'
@@ -1284,7 +1283,6 b' class UserEmailMap(Base, BaseModel):'
1284 UniqueConstraint('email'),
1283 UniqueConstraint('email'),
1285 base_table_args
1284 base_table_args
1286 )
1285 )
1287 __mapper_args__ = {}
1288
1286
1289 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1287 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1290 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
1288 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -1314,7 +1312,6 b' class UserIpMap(Base, BaseModel):'
1314 UniqueConstraint('user_id', 'ip_addr'),
1312 UniqueConstraint('user_id', 'ip_addr'),
1315 base_table_args
1313 base_table_args
1316 )
1314 )
1317 __mapper_args__ = {}
1318
1315
1319 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1316 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1320 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
1317 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
@@ -1352,7 +1349,6 b' class UserSshKeys(Base, BaseModel):'
1352
1349
1353 base_table_args
1350 base_table_args
1354 )
1351 )
1355 __mapper_args__ = {}
1356
1352
1357 ssh_key_id = Column('ssh_key_id', Integer(), nullable=False, unique=True, default=None, primary_key=True)
1353 ssh_key_id = Column('ssh_key_id', Integer(), nullable=False, unique=True, default=None, primary_key=True)
1358 ssh_key_data = Column('ssh_key_data', String(10240), nullable=False, unique=None, default=None)
1354 ssh_key_data = Column('ssh_key_data', String(10240), nullable=False, unique=None, default=None)
@@ -2684,10 +2680,6 b' class RepoGroup(Base, BaseModel):'
2684 UniqueConstraint('group_name', 'group_parent_id'),
2680 UniqueConstraint('group_name', 'group_parent_id'),
2685 base_table_args,
2681 base_table_args,
2686 )
2682 )
2687 __mapper_args__ = {
2688 #TODO: this is now depracated ?!
2689 # 'order_by': 'group_name'
2690 }
2691
2683
2692 CHOICES_SEPARATOR = '/' # used to generate select2 choices for nested groups
2684 CHOICES_SEPARATOR = '/' # used to generate select2 choices for nested groups
2693
2685
General Comments 0
You need to be logged in to leave comments. Login now