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