public function publishMigrations($src, $dstDir, $migrate) {
		$r = true;
		foreach(glob($src.'/*') as $file) {
			if(basename($file) === 'migrations.json')
				continue;
			$dst = $dstDir.'/'.basename($file);
			$this->copy($file, $dst);
		}

		if(!$r) {
			$this->output->writeln('<warning>The migrations could not be added because some files had to be renamed. Please add them manually.</warning>');
			return false;
		}
		else {
			$mm = new \Asgard\Migration\MigrationManager($dstDir, $this->db, $this->schema, $this->container);
			$tracking = new \Asgard\Migration\Tracker($src, $this->db);
			foreach(array_keys($tracking->getList()) as $migration) {
				$mm->getTracker()->add($migration);
				if($migrate)
					$mm->migrate($migration);
			}
			return true;
		}
	}