code: def handle(self, *args, **options):
          
          self.do_list = options.get("do_list")
          self.do_execute = options.get("do_execute")
          self.do_create = options.get("do_create")
          self.do_create_all = options.get("do_create_all")
          self.do_seed = options.get("do_seed")
          self.load_initial_data = options.get("load_initial_data", True)
          self.args = args
          
          if options.get("path"):
              self.path = options.get("path")
          else:
              default_path = self._get_default_migration_path()
              self.path = getattr(
                  settings, "NASHVEGAS_MIGRATIONS_DIRECTORY", default_path
              )
          
          self.verbosity = int(options.get("verbosity", 1))
          self.interactive = options.get("interactive")
          self.databases = options.get("databases")
          
          # We only use the default alias in creation scenarios (upgrades
          # default to all databases)
          if self.do_create and not self.databases:
              self.databases = [DEFAULT_DB_ALIAS]
          
          if self.do_create and self.do_create_all:
              raise CommandError("You cannot combine --create and --create-all")
          
          self.init_nashvegas()
          
          if self.do_create_all:
              self.create_all_migrations()
          elif self.do_create:
              assert len(self.databases) == 1
              self.create_migrations(self.databases[0])
          
          if self.do_execute:
              self.execute_migrations()
          
          if self.do_list:
              self.list_migrations()
          
          if self.do_seed:
              self.seed_migrations()
docs: Upgrades the database.
          
          Executes SQL scripts that haven't already been applied to the
          database.