£Á°èZ¨Ä…–K§‚«“ô4“ÒÙ´dîfUÙÃÅ WKbyʦ•ꎅȮFÒ¿ÊÎóCozá¬S@6{Í:›œêZÌ:Š•_%:¢¾¾~;‘Ã~芩ÊǍí`ÔÑ©ú뙵'5I¿fš×WO%ø9¾«¾DK|€ùÍD”Ýs]nHÕ¶êםӼ㞪éUWŸÈË%DÒÕ¬ï‘]/Åcx ‰ï2ß]ä6G[]S£Ôϯrs{úëóµmÒï#UQxo·õÞCe]"±/aÙ&Eã4ú9Jé_ÞåëdãöKë)AÞ ¯¹ægƒÛowЍø^d™ý½ßB7áyMä9ÜÖUã !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! """ Altering MalwareScan.type in order to add ability to support 'malware-response' scan type """ import peewee as pw def migrate(migrator, database, fake=False, **kwargs): MalwareScan = migrator.orm["malware_scans"] MalwareScan.update(type="realtime").where( MalwareScan.type == "inotify" ).execute() migrator.change_fields( MalwareScan, path=pw.CharField(null=True, default="") ) migrator.change_fields( MalwareScan, type=pw.CharField( null=False, constraints=[ pw.Check( "type in ('on-demand', 'realtime', 'malware-response')" ) ], ), ) def rollback(migrator, database, fake=False, **kwargs): """Write your rollback migrations here.""" pass